← back to code snippets


Convert png to svg with potrace & imagemagick

Posted on August 1st, 2015 by Graeme

First make sure imagemagick and potrace are installed (use brew install imagemagick | brew install potrace for mac)

Then just run these:

convert somefile.png somefile.pnm             # PNG to PNM
potrace somefile.pnm -s -o somefile.svg       # PNM to SVG

src: stackoverflow