Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:
 
 

Fedora Tips

by Krishnan Subramanian

2004-01-08 Fedora Tips #7:
Fedora ships with an excellent tool for quick image manipulation - ImageMagick. Here is how it can make one's life easier when there is a need to perform a simple operation on a bunch of images. Rotate images 90 degrees (say after digital camera got confused):

for file in *.jpg
	do
	cp $file $file.orig
	convert -rotate 90 $file.orig $file
done

Resize images to 800x600 pixels (web display of those 6 megapixel
photos):
for file in *.jpg
	do
	cp $file $file.orig
	convert -resize 800x600 $file.orig $file
done
- submitted by Leonid Mamtchenkov