Page 1 of 1

How to avoid upscaling very small images when thumbnailing

Posted: 2010-07-02T08:48:54-07:00
by phy9pas
Hello, this seems like it should be a simple thing to do, but I can't find any examples anywhere.

I'm using the following command to thumbnail images

-quality 100 "$source" -thumbnail "100x100" "$dest"

But I want to skip any images which are smaller than 100x100, otherwise it seems to upscale small images to fit.

Thanks in advance.

Pete

Re: How to avoid upscaling very small images when thumbnaili

Posted: 2010-07-02T09:52:17-07:00
by fmw42

Re: How to avoid upscaling very small images when thumbnaili

Posted: 2010-07-04T17:42:55-07:00
by anthony
See IM Examples, Resize - only shrink larger images
http://www.imagemagick.org/Usage/resize/#shrink

Re: How to avoid upscaling very small images when thumbnaili

Posted: 2010-07-05T00:32:29-07:00
by phy9pas
That's done the trick.
Cheers guys.

Pete