images/smilies/convert.sh
author Dan
Sun, 07 Oct 2007 22:06:15 -0400
changeset 182 c69730750be3
parent 0 902822492a68
permissions -rw-r--r--
Fixed the security hole (really, I'm a moron - used $failed > $threshold instead of $failed >= $threashold) and patched up some...erm... math issues

#!/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