Search found 7 matches

by Fredrik
Fri Jun 02, 2023 1:40 pm
Forum: Flows
Topic: Get one layer from Imagemagick
Replies: 15
Views: 52426

Re: Get one layer from Imagemagick

This was my approach.
by Fredrik
Fri Jun 02, 2023 10:34 am
Forum: Flows
Topic: Get one layer from Imagemagick
Replies: 15
Views: 52426

Re: Get one layer from Imagemagick

Thanks! It works now, but i was afraid there would be an issue if multiple users uses this flow at the same time since we are overwriting the same .bat file and when testing this by putting two images in the flow with different sizes they both came out with the same size. So there is an issue with t...
by Fredrik
Thu Jun 01, 2023 1:11 pm
Forum: Flows
Topic: Get one layer from Imagemagick
Replies: 15
Views: 52426

Re: Get one layer from Imagemagick

Hi Jan! How does your execute command look like? Command or path and arguments? I create a bat file with Execute Command Friend and it looks like this and i think it is correct. set filename=%1 set output=%2 C:/Program Files/ImageMagick-7.1.1-Q16-HDRI/magick.exe C:/Users/Admin/Roaming/Enfocus/Switch...
by Fredrik
Thu May 25, 2023 8:53 am
Forum: Flows
Topic: Get one layer from Imagemagick
Replies: 15
Views: 52426

Re: Get one layer from Imagemagick

My guess is that this approach will not populate %1 %2 %3 %4 with any information, since the Resize_ps.bat is a static file and will just be executed 'as is'. Perhaps you are correct, i don't get any more error messages in Switch than that the expected output file doesn't exists. Is this an issue w...
by Fredrik
Wed May 24, 2023 1:37 pm
Forum: Flows
Topic: Get one layer from Imagemagick
Replies: 15
Views: 52426

Re: Get one layer from Imagemagick

That is because anything between [] is considered to be a variable in a single-line text with variables and [0] is not a valid Switch variable. My advice when working with more complex commands in the context of "Execute command" is to put everything in a batch file/shell script. In "...
by Fredrik
Tue May 16, 2023 9:24 am
Forum: Flows
Topic: Get one layer from Imagemagick
Replies: 15
Views: 52426

Re: Get one layer from Imagemagick

Thanks for the suggestion "%1\[0\]" didn't work, neither did "%1\[0]\" or "\%1[0]\"
by Fredrik
Mon May 15, 2023 11:59 am
Forum: Flows
Topic: Get one layer from Imagemagick
Replies: 15
Views: 52426

Get one layer from Imagemagick

Hi! Quite new to Switch but have created a Switch/imagemagick flow that works fine, but with photoshop files i would like to add a couple of characters in my imagemagick command but i can't figure out how. My IM command looks like this: "%1" -resize [Job.PrivateData:Key="[Job.Hierarch...