Friday, December 03, 2004

Image Manipulation and batch conversion using ImageMagick for Linux: "In this case only one image will be resized. To repeat this operation to all other images I will use a 'for' loop (bash):

$ for i in *; do convert -sample 60% '$i' 'new_$i'; done

Next, we will 'paste' these images in a 128x128pixel canvas, using composite.

First, we will need a image with this dimensions. We can use the convert itself to create it, like this:

$ convert -size 128x128 xc:white canvas.png

No comments: