<div dir="ltr">This is done via Inkscape.  It can import an image and convert to SVG.  I have done this for digitized embroidery files and CNC projects.  SVG back to PostGIS is a bit more difficult.</div>