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

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s