Hi,
To batch resize all images in a folder, I do the following:
Make a new file (not as root):
Code:
gedit ~/.gnome2/nautilus-scripts/batch640x480
Then add the following:
Code:
#!/bin/sh
# author: Bas Wenneker
# email: sabmann [ta] gmail [tod] com
# Use this script to batch resize all images in a folder.
# First open the folder and then use the script.
for file in `ls -l`
do
name=`echo $file | cut -f1 -d.`
convert -geometry 640x480 -quality 65 $file ${name}_640x480.jpg
done
Then make it executable:
Code:
chmod +x ~/.gnome2/nautilus-scripts/batch640x480
Then you're done. Go to the folder you'd like to resize. Then rightclick and find the 'batch640x480' script.
I use this script for resizing large amounts of photo's for a website. That's why the '-quality 65' is in the script. You can change the script to your needs. Click here for more convert commands.
Hope you'll find this usefull...
Bookmarks