Potrace

Free raster to vector conversion software
Potrace
Developer(s)Peter Selinger
Initial release2001
Stable release
1.16[1] / September 17, 2019; 4 years ago (2019-09-17)
Repository
  • potrace.sourceforge.net Edit this at Wikidata
Written inC
PlatformCross-platform
TypeRaster-to-vector conversion
LicensePotrace: GPL-2.0-or-later, Potrace Professional: proprietary
Websitehttp://potrace.sourceforge.net

Potrace (/ˈptrs/)[2] is cross-platform, open-source software which converts bitmapped images into vector graphics. It is written and maintained by Peter Selinger.

Properties

Various graphical frontends are available for the command-line application Potrace. Notably, it has been integrated with Inkscape, giving Inkscape its Trace Bitmap action.[3] FontForge can use Potrace to import a bitmap image into a font. Potrace is also used by the music engraving program LilyPond. An open-source progressive web app that uses Potrace is SVGcode.

Potrace's input and output is black and white (colored images are greyscaled before processing). However, Inkscape is capable of producing color images by decomposing each channel into several black and white images and tracing them separately with Potrace. The commercial Total Vectorize program also uses Potrace as its core.

Potrace is licensed under the GNU General Public License v2.0 or later. A non-GPL version of Potrace called "Potrace Professional" is available under license from Selinger's company, Icosasoft Software, Inc.[4]

Examples

  • Source image JPEG grayscale (891×1,077 pixel, 119 KB)
    Source image JPEG grayscale (891×1,077 pixel, 119 KB)
  • Traced with Potrace in Inkscape to an eight-color SVG image in 2006 (50 KB)
    Traced with Potrace in Inkscape to an eight-color SVG image in 2006 (50 KB)
  • Traced with Potrace in Inkscape to an eight-color SVG image in 2012 (336 KB)
    Traced with Potrace in Inkscape to an eight-color SVG image in 2012 (336 KB)
  • Traced with Potrace in Inkscape to a twelve-color SVG image in 2012 (608 KB)
    Traced with Potrace in Inkscape to a twelve-color SVG image in 2012 (608 KB)
  • Traced with Potrace in Inkscape to a sixteen-color SVG image in 2012 (743 KB)
    Traced with Potrace in Inkscape to a sixteen-color SVG image in 2012 (743 KB)

See also

  • Free and open-source software portal

References

Wikimedia Commons has media related to potrace.
  1. ^ Peter Selinger (2019-09-17). "ChangeLog". SourceForge project potrace. Retrieved 2019-10-25.
  2. ^ Selinger, Peter. "Potrace Frequently Asked Questions". potrace.sourceforge.net. Retrieved 2024-02-28.
  3. ^ "Inkscape tutorial: Tracing". Inkscape. Retrieved 2019-02-06.
  4. ^ Dual licensing program for Potrace

Further reading

  • Peter Selinger, Potrace: a polygon-based tracing algorithm, Sep 2003
  • (in French) Elisa de Castro Guerra, Inkscape: Apprenez, pratiquez, créez, Pearson Education France, 2007, ISBN 2-7440-2158-X, pp. 108–111
  • Yannis Haralambous, Fonts & encodings, O'Reilly Media, Inc., 2007, ISBN 0-596-10242-9, pp. 500–501
  • Karel Píška, Creating Type 1 Fonts from METAFONT Sources: Comparison of Tools, Techniques and Results in TeX, XML, and digital typography: International Conference on TeX, XML, and Digital Typography, held jointly with the 25th Annual Meeting of the TeX Users Group, TUG 2004, Xanthi, Greece, August 30 - September 3, 2004 ; proceedings, LNCS Volume 3130, Editor Apostolos Syropoulos, Springer, 2004, ISBN 3-540-22801-2, pp. 240–256, preprint
  • Official website on SourceForge
  • Vince Vatter, How to make slides from handwritten notes using potrace
  • Online version of Potrace ported with WebAssembly