close
» » Potrace - transform bitmap images into vector

Potrace - transform bitmap images into vector

Graphics

Potrace - transform bitmap images into vector

Sometimes you can be faced with the need to get out of some image in hi resolution. If you are not an Illustrator, you might need to get a result good quality of graphics with low resolution, so that it can be arbitrarily increased, and the elements were smoothed out.

Potrace is a utility for tracing a bitmap, which means that the pixel image is converted into a smooth, scalable image. The original image can be of the formats PBM, PGM, PPM or BMP format, output format, default is EPS (Encapsulated PostScript), with additional options you can specify another format (PDF, SVG, DXF, PGM, PostScript, GeoJSON, Gimppath and XFig).

Without special programs of drawing, you can do the following: take a raster editor like GIMP, resize the image using the best smoothing method and then add a selective blur. Most often it does not give satisfactory results.

The renderer (trace) like potrace accept the input bitmap and creating an image in SVG format. potrace even supports output to PDF.

Example command line:

potrace -s image.bmp

Original                                                       Result

Potrace - transform bitmap images into vectorPotrace - transform bitmap images into vector

Potrace - transform bitmap images into vectorPotrace - transform bitmap images into vector

Potrace - transform bitmap images into vectorPotrace - transform bitmap images into vector

Potrace gives very good results for many images. If the input image has sharp elements, potrace passes them, while the expensive proprietary software gives poor results, smoothing the edges; it took a lot of manual editing.

Potrace advantages relative to other programs:

  • very good results
  • works pretty quickly
  • easily run from the command line you can call from the free vector graphics package Inkscape (by menu command "Path / Trace Bitmap" or Shift+Alt+B).

Cons:

  • produces only monochrome images

Potrace - transform bitmap images into vector

Installation into Linux Mint:

sudo apt-get install potrace

Remove from Linux Mint:

sudo apt-get remove potrace

Good Luck!!!

http://potrace.sourceforge.net/

Print version

Add comments

  • Local comments
  • Facebook comments
  • bowtiesmilelaughingblushsmileyrelaxedsmirk
    heart_eyeskissing_heartkissing_closed_eyesflushedrelievedsatisfiedgrin
    winkstuck_out_tongue_winking_eyestuck_out_tongue_closed_eyesgrinningkissingstuck_out_tonguesleeping
    worriedfrowninganguishedopen_mouthgrimacingconfusedhushed
    expressionlessunamusedsweat_smilesweatdisappointed_relievedwearypensive
    disappointedconfoundedfearfulcold_sweatperseverecrysob
    joyastonishedscreamtired_faceangryragetriumph
    sleepyyummasksunglassesdizzy_faceimpsmiling_imp
    neutral_faceno_mouthinnocent
fb
Your favorite Linux distribution is Other polls