Mercurial > mamba
view scripts/make_pngs.sh @ 113:c5d6d0ba3b2b
Fill in more toolbar stuff
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sun, 11 Sep 2011 20:26:51 +0200 |
parents | c26e36295901 |
children | ed69e9f5ffaf |
line wrap: on
line source
#!/bin/bash tilesize=20 svgdir=source/svg pngdir=data/tiles for subdir in common common/snake lab do for x in $svgdir/$subdir/*.svg do filename=`basename $x` filepath=$pngdir/$subdir/${filename/svg/png} rsvg-convert $x -w $tilesize -h $tilesize -o $filepath pngcrush -q $filepath tmp && mv tmp $filepath done done