Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Art & Design
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Art & Design
Discuss various aspects of Ubuntu and Art here.

 
Thread Tools Display Modes
Old April 22nd, 2007   #1
steharg
Spilled the Beans
 
Join Date: Mar 2006
Beans: 13
imagemagick resize help

i am trying to resize a load of images so they are no more than 150x150px

i am currently using

Code:
convert -resize 150x150\> *.jpg
but it is renaming all the files to that of the last image then adding a number after each one...
lastfilename.jpg.1
lastfilename.jpg.2
etc

how can i get it to keep its original file name? or even go back over to rename it without the numbers on the end?
steharg is offline   Reply With Quote
Old April 23rd, 2007   #2
kidders
Skinny Extra Sweet Ubuntu
 
Join Date: Aug 2006
Location: Dublin IE
Beans: 3,160
Ubuntu 8.10 Intrepid Ibex
Send a message via ICQ to kidders Send a message via AIM to kidders Send a message via MSN to kidders Send a message via Yahoo to kidders Send a message via Skype™ to kidders
Re: imagemagick resize help

Hi there,

The behaviour you describe is what you would expect, bearing in mind that "*.jpg" would be expanded by Bash into a list of matching filenames, the last of which convert will use as its output file. (See convert's man page.)

You could try using find, or a for loop, so each convert command would only have two filenames in it.
kidders is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 08:56 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry