Combine/stack convert.exe commands
Posted: 2013-11-13T08:26:15-07:00
I'm currently running convert.exe 3 times to generate 3 different crops from 1 image:
These all work perfectly well, though the problem is I have to run convert.exe 3 times for every image. How would I launch it once and have it do all 3 crops at one go? The only difference is the -gravity.
I am on Windows 7, and I am launching convert.exe from another program. I can either use either the command-line or read commands from a file, no prob. Input and output files are all jpg. Would appreciate the correct syntax to "stack" these commands.
TIA
Code: Select all
convert.exe -resize 800 -unsharp 0x0.75+0.75+0.008 -gravity center -crop 800x533+0+0 +repage OrigFile OutputFile1
convert.exe -resize 800 -unsharp 0x0.75+0.75+0.008 -gravity North -crop 800x533+0+0 +repage OrigFile OutputFile2
convert.exe -resize 800 -unsharp 0x0.75+0.75+0.008 -gravity South -crop 800x533+0+0 +repage OrigFile OutputFile3
I am on Windows 7, and I am launching convert.exe from another program. I can either use either the command-line or read commands from a file, no prob. Input and output files are all jpg. Would appreciate the correct syntax to "stack" these commands.
TIA