images/smilies/render-smilies.sh
author Dan Fuhry <dan@enanocms.org>
Wed, 25 Apr 2012 02:01:55 -0400
changeset 1360 570abc94bd7f
parent 944 073a42e4177f
permissions -rw-r--r--
Image scaling: Fixed a bug where (height > width) images would be scaled to the wrong dimensions (GD). Added PNG/GIF transparency support to GD image resizer. Added a cache bypass option to SpecialUpDownload.

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