Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Note that -roll does not need +repage since it does not change the image size. Typically you might need +repage for commands that change the image size, such as rotation, distortion, and especially crop and trim. I do not think resize needs it. At least I have never needed it for that kind of operation. Also -layers merge needs it.
fmw42 wrote: ↑2019-04-10T21:10:05-07:00 Typically you might need +repage for commands that change the image size, such as rotation, distortion, and especially crop and trim. I do not think resize needs it. At least I have never needed it for that kind of operation. Also -layers merge needs it.
I also usually do a "+repage" after "-append", "+append", -smush", and "+smush".
"+repage" should be used if the image might have virtual canvas metadata, and you don't want it. It is metadata only, and doesn't affect pixels, so it is very fast.
In your example, the jpg input can't have that metadata, and "-roll" can't create it, so the first "+repage" is superfluous.
"-rotate" does generally change that metadata but "-rotate 180" doesn't.
"-distort polar 0" also doesn't change that metadata.
So, yes, all three occurrences of "+repage" in that command are overkill.
snibgo wrote: ↑2019-04-11T03:04:10-07:00
So, yes, all three occurrences of "+repage" in that command are overkill.
Awesome! Thank you so much for the help snibgo.
I removed repage from my script. Currently, I'm only rotating between 0 or 180, and I think I read that imagemagick will ignore 0 for rotate as it's not doing anything (my wrapper script is defaulting to 0 vs. adding code to remove the line from the command string).
Thanks again everyone, I REALLY appreciate the help!!!!