Resize large images with mogrify (ImageMagick) but leave small images unaffected

Images can be resized making use of mogrify from the ImageMagick collection:

mogrify -resize 256x256 *.jpg

But this will certainly resize photos to make sure that the biggest measurement is 256px, consisting of photos that are smaller sized than 256px to start with (like 100x100px characters).

Just how can I exclude the smaller sized photos from being influenced? i.e. I desire the biggest measurement to be no greater than 256px

(Preferably I will certainly have the ability to do this with ImageMagick collection, or at the very least without mounting anything added).

7
2022-06-07 14:31:48
Source Share
Answers: 1

Try

mogrify -resize '1280x1024>' *.jpg

Do see to it to support however.

7
2022-06-07 14:59:16
Source