view scripts/make_pngs.sh @ 75:ac6688820528

Move font name to constants, for future configurablity
author Neil Muller <drnlmuller@gmail.com>
date Sun, 11 Sep 2011 18:26:39 +0200
parents b88d5cd79fa7
children c26e36295901
line wrap: on
line source

#!/bin/bash

tilesize=20
svgdir=source/svg
pngdir=data/tiles

for subdir in 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