images/smilies/convert.sh
author Dan
Sat, 03 Nov 2007 14:15:14 -0400
changeset 195 3daa715e0f69
parent 0 902822492a68
permissions -rw-r--r--
Alternate scaling using GD is implemented now; images will be scaled with ImageMagick if enabled and working; else, GD will be used. No UI changes to speak of, but a check in the installer will be added in a later commit

#!/bin/bash
for f in *.svg; do
    echo Converting $f
    fname=`echo $f | cut -d '.' -f 1`
    rm -f $fname.png
    inkscape -z -f $f -w 22 -h 22 -e ./$fname.png
done