Page 1 of 1

select some images in a whole batch

Posted: 2019-08-20T06:26:15-07:00
by chloe
Hello everybody

I have to run this command :

Code: Select all

mogrify -resize 800x800^ *.jpg
but I would like it to consider only jpg in the whole batch witch smallest side is above 800 px (I dont want it to force smallest images in the batch up to 800px).

Is there a way to do that ?

Thank you in adavance for your help.
ChloƩ.

Re: select some images in a whole batch

Posted: 2019-08-20T07:27:57-07:00
by snibgo
See http://www.imagemagick.org/script/comma ... p#geometry . Does the ">" flag do what you want? If it does, than include that flag in the resize. Use escapes as necessary for your script language.