Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Art & Imaging in Linux
Reload this Page resize several imgs using convert?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Art & Imaging in Linux Stuff made with The GIMP and/or others

Reply
 
Thread Tools Display Modes
Old 10-26-2005   #1 (permalink)
skela
Just Joined!
 
Join Date: Aug 2005
Location: Europe
Posts: 13
Send a message via MSN to skela
resize several imgs using convert?

I was wondering how to resize several images for example in the same folder using image magik's convert.
__________________
The majority is always incorrect.
skela is offline   Reply With Quote
Old 10-26-2005   #2 (permalink)
dylunio
Linux Guru
 
dylunio's Avatar
 
Join Date: Aug 2004
Location: Cymru
Posts: 4,157
Hmm, most likly you'd be able to use a bash for loop for this.

Code:
#!/bin/bash

files=$(ls -1)
for x in $files
do
convert -geometry 200x200 $x newsize-$x
done
that will convert all the images in your current directory into 200x200 pixel images... you can change the convert comand to whatever you want.
__________________
Registered Linux User #371543!
Get force-get May The Source Be With You
/dev/null
/dev/null2
dylunio is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 08:47 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0