LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-06-2005, 07:44 AM   #1
cadj
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
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, 07:50 AM   #2
cadj
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
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, 06:10 PM   #3
gothicbob
Member
 
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.
  


Reply


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 06:07 PM
Konqueror - disable column width auto resize nnsg Linux - Software 0 09-05-2004 02:51 AM
a need simple a program to resize images while keeping the aspect ratio Necronomicom Linux - Software 3 07-10-2004 01:21 AM
16/9 aspect ratio abby_normal Linux - Software 4 11-03-2003 04:40 PM
Same problem with a new aspect iam3 Programming 2 11-07-2001 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:37 AM.

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