Comment 26 for bug 180612

Revision history for this message
Albin Olsson (albin-olsson) wrote :

Leveraging rickmastfan67 work around, I wrote a small shell script to create a non-antialiased png from an inkscape svg. It requires ImageMagick. Here it is in case it is useful to someone else:

#!/bin/sh
file=${1:?Need filename argument to convert}
sed '/style=/ishape-rendering="crispEdges"' $file > $file~
convert $file~ $(echo $file | sed -e 's/svg$/png/')
rm -f $file~