Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
if [ "$1" == "" ]; then
echo Usage: $0 pngfile
exit 0;
FILE=`basename $1 .png`
if [ ! -e $FILE.png ]; then
echo $FILE.png does not exist
exit 1;
convert $FILE.png $FILE.pnm
potrace -s -o $FILE.svg $FILE.pnm
rm $FILE.pnm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.