I'm running the following command:
mogrify -resize '400x400>' *.png
According to the docs, the "widthxheight>" geometry (with >
at the end) "Shrinks an image with dimension(s) larger than the corresponding width and/or height argument(s)."
I expect the images with width/height less than 400x400 to be untouched, but mogrify rewrites the file for no reason―the modification date and file size are changed.
Is there a way to make it actually just leave the smaller images alone? I'd like to avoid several thousand unnecessary write operations.
Thank you.
– Mike May 18 '12 at 16:15identify
automatically put a newline after each record, others need to have one explicitly. Add\n
at the end of the argument to-format
(see my edit). – Gilles 'SO- stop being evil' May 19 '12 at 12:10