Dear Fred,
I use potrace, but within a script, the most essential bit of which is:
Code: Select all
convert "$infile" -trim pnm:- | potrace -s -O 1 -u 1 -o "$newfile"
The command-line program "convert: is part of imagemagick. It will convert the png to pnm, which is piped into potrace. Potrace then outputs a standard text svg file. Mtpaint may be able to do that conversion from png to pnm, too.
Sometimes I have to massage the png first in a graphics editor - increasing contrast or doing a greyscale conversion before running my img2svg script.
With kind regards,
vovchik