Mercurial > mamba
comparison scripts/make_pngs.sh @ 66:855bc20b9900
KILL THE METADATA WITH FIRE
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Sun, 11 Sep 2011 17:26:05 +0200 |
parents | 07f18421f121 |
children | b88d5cd79fa7 |
comparison
equal
deleted
inserted
replaced
65:ca2206efeeb1 | 66:855bc20b9900 |
---|---|
7 for subdir in common/snake lab | 7 for subdir in common/snake lab |
8 do | 8 do |
9 for x in $svgdir/$subdir/*.svg | 9 for x in $svgdir/$subdir/*.svg |
10 do | 10 do |
11 filename=`basename $x` | 11 filename=`basename $x` |
12 rsvg-convert $x -w $tilesize -h $tilesize -o $pngdir/$subdir/${filename/svg/png} | 12 filepath=$pngdir/$subdir/${filename/svg/png} |
13 mogrify -strip $pngdir/$subdir/${filename/svg/png} | 13 rsvg-convert $x -w $tilesize -h $tilesize -o $filepath |
14 pngcrush -q $filepath tmp && mv tmp $filepath | |
14 done | 15 done |
15 done | 16 done |
16 | 17 |
17 shopt -s nullglob | 18 shopt -s nullglob |
18 | 19 |