Page 1 of 1

Reduce Only Larger Images

Posted: 2010-04-02T06:30:17-07:00
by santhanamt
I have a parent folder an many child folders inside with lots of images.
I want to resize all images inside the folder to 400 pixels width,
but i want the smaller ones to be left intact, because some are below 100 and they get expanded to 400 and look ugly.

Thanks in advance.
T.Santhanam

Re: Reduce Only Larger Images

Posted: 2010-04-02T06:34:35-07:00
by Bonzo
See http://www.imagemagick.org/script/comma ... php#resize & http://www.imagemagick.org/script/comma ... p#geometry
If you are using php or some other method you could check the image size before resizing.

Re: Reduce Only Larger Images

Posted: 2010-04-02T09:31:56-07:00
by fmw42
use mogrify to process a whole folder, see http://www.imagemagick.org/Usage/basics/#mogrify

try -resize "400>" in the mogrify, see references above from Bonzo