select some images in a whole batch

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?".
Post Reply
Posts: 1
Joined: 2019-08-20T06:18:49-07:00
Authentication code: 1152

select some images in a whole batch

Post 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.

Posts: 12659
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: select some images in a whole batch

Post by snibgo »

See ... 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.
snibgo's IM pages:

Post Reply