Hi,
To batch resize all images in a folder, I do the following:
Make a new file (not as root):
Then add the following:Code:gedit ~/.gnome2/nautilus-scripts/batch640x480
Then make it executable: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 you're done. Go to the folder you'd like to resize. Then rightclick and find the 'batch640x480' script.Code:chmod +x ~/.gnome2/nautilus-scripts/batch640x480
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...



Adv Reply





Bookmarks