Tint with ImageMagick
This is a bash script. To use it, create the file, use chmod +x tint, then run it with tint green (for example). You might have to adjust the fuzz factor.
#!/bin/bash
if [ $# -lt 1 ]
then
echo “Usage: tint color”
fi
d=’../box-1/’
for f in `ls $d`
do
convert $d$f -fill $1 -fuzz 4% -opaque “#eee” $f
done
d is the source directory, where the original images are stored. The directory this script is running in serves as the destination.
Print article | This entry was posted by elvis on 11/06/09 at 10:35:56 pm . Follow any responses to this post through RSS 2.0. |