I have these files under ./:
a.jpg
b.jpg
256/a.jpg
I'm running this command to convert files to 256px:
mogrify -path ./256/ -resize 256x256 *.jpg
But this command always overrides the existing files in 256, such as 256/a.jpg. Even though the images look the same, git diff still detects changes in the file. How can I avoid overwriting existing files with mogrify?
Versions:
ImageMagick 7.0.10-23 Q16 x86_64 2020-07-05
64bit Mac OS X 10.15.6 19G73
Edit:
My desired result is:
a.jpg
b.jpg
256/a.jpg (Unchanged)
256/b.jpg (Created)
@Sam Forbis' Answer
Using convert -resize 256x256 *.jpg -append ./256/*.jpg would result in:
a.jpg
b.jpg
256/a.jpg (Unchanged)
255/a-0.jpg (Created)
256/a-1.jpg (Created)