Home | Links | Weblog


exhalations
Wednesday, August 04, 2004
  
ImageMagick - Lately I've been using GIMP for most of my image processing tasks. While there is a scripting capability, I haven't yet learned it. When I resize images, I do it manually. As I began to compile photos from our recent Bike Virginia trip, I had a need to resize several images. I downloaded ImageMagick, another Open Source image processing program which has a good batch processing capability. The mogrify command is used for many task, one of which is to resize images in a directory. Since it overwrites the original, I copied the images to another directory and used:
mogrify -thumbnail 200x150 -bordercolor black -border 1x1 aut*.jpg
To stitch together several photos in a panorama I used the command montage:
montage -adjoin -geometry 200x150x0x0 *.jpg pan.jpg
This worked, but due to the differences in the photos at the edges, it wasn't a good soultion, so used GIMP to create a blank image 1000x150, then pasted each image into this one and cropped the result.

ImageMagick also has a good image viewer that will display thumbnails of all images in a directory.

I'll post some of the results once the Bike Virginia report is ready.


Comments: Post a Comment