LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-13-2006, 07:53 PM   #1
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Rep: Reputation: 31
convert photos, dont want to keep proportions


I have a few hundred some photos im trying to resize to a specific size to fit in a template and instead of doing each one at a time with photoshop (how I started) thought I just script it. I got the script working cept one problem I cant figure out how to convert a given size photo to exactly 605x351.. they always keep the same proportions.. I want it to shrink/stretch so the picture is exactly that size.

Can convert even do this? I tried many of the options extent, resize, size, resample, scale, geometry, sample .. all keep the proportions so the photos come out to like 580x351 or just cuts a 605x351 square out of the picture...
 
Old 10-14-2006, 03:37 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Sure.

convert -resize 605x351\! pic pic_new



Cheers,
Tink
 
Old 10-14-2006, 05:45 AM   #3
Merlin Whitewolf
Member
 
Registered: Mar 2006
Location: Cookeville, Tennessee
Distribution: Fedora Core 5 and PCLinuxOS
Posts: 75

Rep: Reputation: 15
Quote:
Originally Posted by Tinkster
Sure.

convert -resize 605x351\! pic pic_new

Cheers,
Tink
Hey Tink,
I was looking for that one, too.

Thanks,
Merlin
 
Old 10-14-2006, 07:58 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
You speak of the "convert" that is part of ImageMagick?? Or something that can be installed separately?
 
Old 10-14-2006, 08:59 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by pixellany
You speak of the "convert" that is part of ImageMagick?? Or something that can be installed separately?
convert is part of ImageMagick..
 
Old 10-14-2006, 11:32 AM   #6
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
Worked perfectly! Thanks alot Tinkster!
 
Old 10-14-2006, 02:02 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Glad I could help two people with one response :}



Cheers,
Tink
 
Old 10-14-2006, 02:28 PM   #8
Merlin Whitewolf
Member
 
Registered: Mar 2006
Location: Cookeville, Tennessee
Distribution: Fedora Core 5 and PCLinuxOS
Posts: 75

Rep: Reputation: 15
Quote:
Originally Posted by Tinkster
Glad I could help two people with one response :}

Cheers,
Tink
You did indeed! Thanks again, Tink.

Merlin
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Photos from Iraq rinard General 1 04-11-2004 07:18 AM
new to linux dont what distro to use dont no much command xman2007 Linux - Newbie 3 01-02-2004 05:32 PM
cataloguing my photos intellscreen Linux - Newbie 1 11-02-2003 12:51 PM
Things dont work when you dont understand withoutaclue Linux - Newbie 3 03-12-2003 09:51 AM
more funny photos... acid_kewpie General 9 01-02-2002 08:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:22 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration