LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ImageMagick-Convert, resize width, keep aspect (https://www.linuxquestions.org/questions/linux-software-2/imagemagick-convert-resize-width-keep-aspect-330819/)

cadj 06-06-2005 06:44 AM

ImageMagick-Convert, resize width, keep aspect
 
Id like to resize my images to be a width of 200, but keep the same aspect ratio.

anyone help me with this, shouldent be too hard

cadj 06-06-2005 06:50 AM

got it

for i in *.jpg; do echo "$i"; convert "$i" -resize x50 "$i"; done

gothicbob 06-18-2010 05:10 PM

sorry to revive an old thread but I came across this during a search. The above is correct but will resize in height rather than width.

for i in *.jpg; do echo "$i"; convert "$i" -resize 50x "$i"; done

50x will do width as it is width x height format.


All times are GMT -5. The time now is 12:53 AM.