Resize images to specific height value in ImageMagick?

Posted by Jason on Ask Ubuntu See other posts from Ask Ubuntu or by Jason
Published on 2012-05-30T11:46:43Z Indexed on 2012/05/30 17:00 UTC
Read the original article Hit count: 261

I've looked around for this, and can't find an easily implemented solution.

Currently I'm working on an application that deals with panoramas. As they come out of the batch stitch process, the dimensions average 18000x4000. Using ImageMagick, how can I downscale those images to a specific height value while maintaining aspect ratio?

According to the manual, the convert operation takes in both height and width to resize to while maintaining the same aspect ratio. What I'd like is to put in 600 and 1000 in my existing resize script function and have both a regular viewable image as well as a reduced size.

© Ask Ubuntu or respective owner

Related posts about imagemagick

Related posts about image-processing