digital adj. Having digits.     peer n. A comrade; a companion; a fellow; an associate. inmotion    
   
Recent Articles
Stop DNSMasq From Forwarding Local Hostnames
Saturday, September 25, 2010
Securing your Wireless LAN
Wednesday, August 18, 2010
Some tips and things you might not know about your wireless network.
Using Different Subversion Client Versions
Wednesday, August 18, 2010
Handling a Subversion Repository URL Change
Sunday, May 3, 2009
If your repository URL changes, you can use the following command to fix existing snapshots.
vfat Mounts Default to Lowercase Shortnames
Tuesday, April 21, 2009
I want a "this is brain-damage" quote from Linus for this mess.
VirtualBox or VMWare Virtual Machine at Login
Sunday, April 12, 2009
How to start a virtual machine in X when a user logs in.
Dialog Progress Bar Through Pipe
Sunday, April 12, 2009
How to use dialog to display a script progress bar and communicate progress to it through a named pipe.
Mount JFFS2 Image
Saturday, October 25, 2008
Example of how to mount a JFFS2 image using mtdblock.

It is a simple task to make things complex, but a complex task to make them simple.

Projects-Misc Scripts-Batch Resize...

Batch Resize Image Script

Tuesday, May 10, 2005 by digitalpeer

#!/bin/sh

for file in *.JPG 
do 
	echo "Resizing file $file ..."
	convert -resize 640x480 $file $file 
done

Comment Friday, August 5, 2005 by  anonymous
Great. Nice and easy. Thanks. I added quotes to fix spaces in filenames:
convert -resize 640x480 "$file" "$file"
Comment Tuesday, January 16, 2007 by  RJ
Never knew convert command existed. I have LOTS of images to be reduced in size. Thanks cause you lead me to the convert.
Comment Tuesday, August 14, 2007 by  by rince
Hi, thanks for this script...
Is it possible to just convert one file in het current directory, instead of *.JPG?

I'm kinda new at this... i would like to use it as convert script for xfce's Thunar (custom actions)

thx
Comment Friday, September 21, 2007 by  luziy
whoaaa command not found
Comment Saturday, May 31, 2008 by  anonymous
well, it only works if convert is installed on your system...

Submit Comment to This Article
Please post a comment if you have something to add, find something wrong, or would like more information on the topic at hand. Do not use the comment form to contact the author about unrelated concerns!

Name: Email (optional):
Enter verification number here: