Bitmap to vector: tracing in Linux

Inkscape gives the possibility to trace a bitmap object to a vector one from the menu Path > Trace Bitmap item, or Shift+Alt+B (see this page).

More interesting is the possibility to to the same from the shell, without the need of an interactive program. I loved potrace for this, available from the repository. Its input are BMP images, so imagemagik will become handy:

convert input.png input.bmp
potrace -b pdf -o output.pdf input.bmp
potrace -b svg -o output.svg input.bmp
Advertisements