01-26-2020, 05:29 AM
(01-25-2020, 10:29 PM)rudra Wrote: i would like to know if any of you guys know of any command line tool that can convert colour bitmap images to vector images. I'm talking about PNG image to SVG image format.
a friend asked me to find out. so far i have tried sotrace. but that is only good for gray-scale/black and white pictures. one can convert jpg to uncompressed png pretty easy using convert from imagemagick. but that colour png input yields a b/w output from sotrace.
oh. i also tried using sotrace and imagemagick under termux in Android. it works.
I used an svg2png tool when I was developing my WebMapping engine (spritezero-cli) but a png2svg ?!.. Rather unusual!.. You start from a nice 25KB png to end up with 2.5MB SVG file (assuming the conversion is Ok-ish...)
Anyway, may be this one https://github.com/xyproto/png2svg, but you need to have Google's golang installed for it to run.