This script doesn't always work. If you just add a ! after the geometry specification it will, thusly: for image in *.jpg; do
convert $image -geometry 160x120! thumb-$image done
måndag 22 januari 2001 19:28 skrev Bryan S. Tyson:
On Mon, 22 Jan 2001, Chris wrote:
I'm looking for a command line program that will perform resizing, etc. on an image. Batch processing would be an advantage. The idea is that I want to make thumbnails for a large number of jpeg images, and I would like it to do this automatically, from within a script.
If you have ImageMagick installed (most systems do), try
for image in *.jpg; do convert -geometry 160x120 $image thumb-$image
To use this, put all your images in one directory and run the script. Change the thumbnail dimensions to whatever you want. Your thumbnail file names will all begin with thumb-, for example bike.jpg will have a matching thumbnail called thumb-bike.jpg
*************************************************** Powered by SuSE Linux 7.0 Professional KMail 1.0.29.2
Bryan S. Tyson bryantyson@earthlink.net ***************************************************