Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-06-2005, 06:44 AM   #1
Registered: Aug 2003
Location: Melbourne Australia
Distribution: LinuxMint Elyssa
Posts: 374

Rep: Reputation: 32
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
Old 06-06-2005, 06:50 AM   #2
Registered: Aug 2003
Location: Melbourne Australia
Distribution: LinuxMint Elyssa
Posts: 374

Original Poster
Rep: Reputation: 32
got it

for i in *.jpg; do echo "$i"; convert "$i" -resize x50 "$i"; done
Old 06-18-2010, 05:10 PM   #3
Registered: Sep 2005
Location: Birmingham / Bath Uk
Distribution: Kubuntu 8.10, Debain 4.0
Posts: 86

Rep: Reputation: 16
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.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resize Image using ImageMagick mddolloff Linux - Software 1 11-20-2004 05:07 PM
Konqueror - disable column width auto resize nnsg Linux - Software 0 09-05-2004 01:51 AM
a need simple a program to resize images while keeping the aspect ratio Necronomicom Linux - Software 3 07-10-2004 12:21 AM
16/9 aspect ratio abby_normal Linux - Software 4 11-03-2003 03:40 PM
Same problem with a new aspect iam3 Programming 2 11-06-2001 11:23 PM

All times are GMT -5. The time now is 07:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration