Wednesday, May 21, 2008

sed + xargs + inkscape

to make a batch exporting of SVGs to PNGs at a specific size:

foo.sh:
#!/bin/sh

PNG=`echo $1 | sed s/scalable/$2x$2/ | sed s/.svg/.png/`
DIR=`dirname $PNG`

mkdir -p $DIR
inkscape $1 --export-png=$PNG -w$2 -h$2

and at the shell:
$ find . -iname *.svg | xargs -i ./foo.sh {} 32

Friday, May 09, 2008

The new Ubuntu website banner

renders its bad way of marketing!


  • You advertise your operating system by featuring the uninstaller?
  • "(Note that you'll need it)"?!?
(*) the 'e' is added by me, not them. But does it make a difference?