images/smilies/convert.sh
author Dan
Mon, 22 Dec 2008 21:26:19 -0500
changeset 793 c0724bf6039b
parent 0 902822492a68
permissions -rw-r--r--
Added dynamic reload-less re-auth to admin panel, so that if a session is lost it can be recovered without a reload. Support for hooking into form submits will be added in the future.

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