ImageMagick with Execute Command Arguments
Posted: Thu Nov 08, 2018 10:30 am
I hope someone can explain to me how this works with Execute Command.
I have made a simple flow that converts Tiff-files with an AdobeRGB profile to sRGB JPG. I'm using ImageMagick and Execute Command in Switch.
It all works fine when using this Argument:
"%1[0]" -profile "C:/WINDOWS/System32/spool/drivers/color/sRGB.icc" "%2"
However, when using this:
"%1" -profile "C:/WINDOWS/System32/spool/drivers/color/sRGB.icc" "%2"
...Switch messages returns this: Cannot complete sendToSingle() for 'C:/Users/Erik/AppData/Roaming/Enfocus/Switch Server/temp/73/ScriptElement/22/51/ExecuteComandResult/T1038_7343__1F.jpg'
Can someone explain the difference between "%1[0]" and "%1"? What does [0] do?
Properties are set like this
I have made a simple flow that converts Tiff-files with an AdobeRGB profile to sRGB JPG. I'm using ImageMagick and Execute Command in Switch.
It all works fine when using this Argument:
"%1[0]" -profile "C:/WINDOWS/System32/spool/drivers/color/sRGB.icc" "%2"
However, when using this:
"%1" -profile "C:/WINDOWS/System32/spool/drivers/color/sRGB.icc" "%2"
...Switch messages returns this: Cannot complete sendToSingle() for 'C:/Users/Erik/AppData/Roaming/Enfocus/Switch Server/temp/73/ScriptElement/22/51/ExecuteComandResult/T1038_7343__1F.jpg'
Can someone explain the difference between "%1[0]" and "%1"? What does [0] do?
Properties are set like this