I want to resize an image to a max width. So I don’t care about the height of the image, but I just want to always resize it to a specific width.
I’m certain I’ve done this before I just can’t remember how I did it now.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Seems this is the way it is done, noting that width is the first parameter.
For anyone else wondering about height, then you would do this:
Source: http://www.imagemagick.org/script/command-line-processing.php
Edit (Nov 2014): Note that in the latest versions of ImageMagick you can no longer use quotes around the values as per Kevin Labécot’s comment.