see http://www.imagemagick.org/script/command-line-processing.php#geometry


width
Width given, height automagically selected to preserve aspect ratio.

convert image -resize WIDTH result

seems to work for me.   (Also WIDTHx)

IM 6.6.4.7 Q16 Mac OSX Tiger.

Are you on an old release of IM?  Perhaps you need to upgrade.





>I have some dozen jpg files together, some landscape oriented, some
>portrait.
>How do I convert the jpgs, so that the width only is always (eg) 500 px ?
>
>When I convert it as below, the longest between width/height gets
>resized to 500 px.
>
>blau:~$ for i in *.jpg; do convert "$i" -resize 500 \
>"${i//.jpg}"-500.jpg; done
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to