Code: Select all
magick logo: logo.png - created output logo.png
magick rose: rose.png - created output rose.png
Then I hit block of the road, but somehow achieved not a bad end.
Code: Select all
magick logo.png -set filename:fn "%t" rose: +append "%[filename:fn]_x1.png" – just instantly closed
I added, “pause” to see what the hell. Error:
Code: Select all
magick: MissingArgument `-set' at CLI arg 2 @ fatal/magick-cli.c/ProcessCommandOptions/447
This is definitely problem on my end I thought, installed ImageMagick-7.0.8-68-Q16-x64-dll (until then I was using same portable version), nope problem still exists, .bat .cmd were throwing the error string. Then I opened CMD directly in the folder where program resides BAM
Code: Select all
magick logo.png -set filename:fn "%t" rose: +append "%[filename:fn]_x1.png" – merged logo_x1.png has been created
Land ahoy! Here we go. In .cmd file
Code: Select all
magick rose: logo.png -set filename:fn "%t" +swap +append "%[filename:fn]_x2.png" - magick: MissingArgument `-set' at CLI arg 3 @ fatal/magick-cli.c/ProcessCommandOptions/447
CMD opened in folder or cd to folder
Code: Select all
magick rose: logo.png -set filename:fn "%t" +swap +append "%[filename:fn]_x2.png" – merged logo_x2.png has been created
In .cmd file
Code: Select all
magick logo.png -set filename:fn "%t" rose: +swap +append "%[filename:fn]_x3.png" - magick: MissingArgument `-set' at CLI arg 2 @ fatal/magick-cli.c/ProcessCommandOptions/447
CMD opened in folder or cd to folder
Code: Select all
magick logo.png -set filename:fn "%t" rose: +swap +append "%[filename:fn]_x3.png" - %[filename zero bytes output
This works in my case:
Code: Select all
magick test\*001*.png test\*002*.png -set filename:fn "%t" +swap +append "merged\%[filename:fn].png"
Not sure what the problem with .cmd/.bat behavior, but directly opened console solved everything. Thank you, fmw42, for your time and help.