How do I prevent ImageMagick convert from scaling images *up*?

Posted by Kyle on Stack Overflow See other posts from Stack Overflow or by Kyle
Published on 2010-05-06T15:27:36Z Indexed on 2010/05/06 15:38 UTC
Read the original article Hit count: 200

I'm using ImageMagick's convert tool to generate image thumbnails for a web application. I'm using notation like so: 600x600>

The images are indeed scaled to 600px wide/tall (depending on the longer side) and proportions are properly maintained, however images less than 600px in either direction are scaled up — this behavior is not desired. Is there a way to prevent convert from scaling images up if the destination dimensions both exceed the original image size?

© Stack Overflow or respective owner

Related posts about image-processing

Related posts about imagemagick