Bash script to resize all images in a given directory
This bash script resizes all the jpg images in a given directory to fit in the size of 1024x768 maintaining the original aspect ratio of the image. It makes use of two external programs provided by Imagemagick, viz. convert & identify. It has been tested to work only on my Fedora Core 3 system.
A number of times, there is no need to keep the high resolution images shot from your digicam on your hard disk. It would simply take up too much space without being really useful since your screen resolution may be just 1024x768. In such cases you might want to write the high resolution images to a CD or DVD and keep the scaled low resolution images in the hard disk. This script is designed to be used in such a scenario.
Be warned that this script replaces the image files in the specified directory. So if you want to retain the high resolution images, you will have to write all the images in the directory to a CD & then run this bash script on that directory.
There is no warranty of any kind for this bash script. Use it at your own risk.
