Image Tracer Open the app

Comparison4 min read

Image Tracer vs Potrace

Potrace is the classic open-source bitmap tracer, used inside many other tools. Image Tracer is a free browser app with its own Potrace-inspired engine. Here is how they differ and when to use each.

  • No account required
  • No watermark
Image Tracer
Image Tracer
  • Free, no account
  • Runs in your browser
  • Nothing uploaded
vs
$ potrace logo.pbm -s -o logo.svg$ lslogo.pbm  logo.svg$ 
Command-line tool
  • Free (GPL)
  • Black & white only
  • Scriptable

Quick verdict

Potrace is a mature, scriptable command-line tool and library, and the reference implementation of its algorithm. If you want to trace hundreds of files in a script, embed tracing in your own software, or produce PDF, EPS or DXF output, Potrace is the better fit. Image Tracer is for people who want a visual tool: drop in a PNG or JPG, adjust a few settings with a live preview, and download an SVG, including colour traces, without installing anything.

Image Tracer's engine is inspired by Potrace's approach but is a separate implementation, not Potrace itself.

Side-by-side comparison

Image TracerPotrace
PriceFreeFree
Platform / installAny modern browser, nothing to installCommand-line program and C library; builds for Windows, macOS, Linux and other systems, and in many package managers
Privacy / uploadTraced on your device; never uploaded. Works offline once loadedRuns locally
InputPNG, JPEG, WebP, GIF, BMP (drag, drop or paste)PBM, PGM, PPM and BMP
Black & white tracingYes: automatic Otsu threshold with histogram, blur, invertYes; traces bitmaps, with mkbitmap to pre-process greyscale and colour images
Colour tracing2–32 colours; separate shapes or stacked layers; remove backgroundNo, input is traced as a bitmap
Output formatsSVGSVG, PDF, EPS, PostScript, DXF, GeoJSON, PGM, Gimppath and XFig
Editing toolsNone built in; live preview with paths and pointsNone (command line)
Speed / easeVisual, live previewFast and scriptable; requires the command line
LicenceOpen sourceGNU GPL version 2 or later

How they relate

Potrace, written by Peter Selinger, turns a two-colour bitmap into smooth curves: it finds the outlines of black regions, approximates them with polygons, then fits Bézier curves and optimises them. Its options control things like speckle removal, corner detection and curve optimisation. It is embedded in other software, including Inkscape's Trace Bitmap, and has been ported to many languages.

Image Tracer follows the same broad idea in its own code, running in a Web Worker in the browser, and adds steps around it:

  • Image preparation. It accepts everyday formats and, in Black & white mode, chooses a threshold automatically per image (Otsu's method), with optional blur and invert. Transparent areas are treated as white.
  • Colour. Colour mode reduces the image to 2–32 colours and traces each region. The default Separate shapes output makes every region its own path, with true cut-out holes and exact shared boundaries between neighbours.
  • Sharp corners. Corners between straight edges are kept exact and anti-aliased corners are rebuilt.
  • Familiar controls. Ignore less than, Smoothness and Curve optimisation play a similar role to Potrace's speckle, corner and optimisation options, with a live preview.

Where Potrace is stronger

  • Scripting and batch work. One command traces a file, and a shell loop traces thousands. Image Tracer has no batch mode or command line.
  • Embedding. As a C library with ports to languages such as Python, JavaScript and Rust, it can power your own application.
  • Output formats. Many backends, including PDF, EPS, DXF and GeoJSON. Image Tracer outputs SVG only.
  • The reference algorithm. Potrace is long-established, documented in a published paper, and the baseline other tracers are measured against.
  • Scaling and page options. Command-line options for output size, margins and page layout suit print and plotting workflows.

Where Image Tracer is stronger

  • No command line, no install. It opens in a browser tab, and you drop, paste or choose an image.
  • Everyday input formats. PNG, JPEG, WebP, GIF and BMP work directly, with no conversion to PBM first.
  • Colour tracing built in. Potrace traces a single bitmap; Image Tracer traces 2–32 colours into separate, non-overlapping shapes.
  • Visual feedback. A live preview of the original, the processed mask and the vector, with paths, points and node counts, makes tuning quick.
  • Separate shapes. Every visually separate shape is its own path with its own holes, which is handy for web use, cutting machines and editing.

Who should choose which

Choose Potrace if

  • you're comfortable on the command line and want to automate tracing;
  • you're building software that needs a tracing library;
  • you need PDF, EPS, DXF or GeoJSON output.

Choose Image Tracer if

  • you want a visual tool with a live preview and no installation;
  • your images are PNG or JPG files and you don't want to convert them first;
  • you need colour tracing as well as black & white.

Using both together

Image Tracer is a handy way to explore settings visually on a single image. Once you know what a good result looks like, you can reproduce a similar black & white trace in Potrace for a batch of files (the engines differ, so results won't be identical). In the other direction, Potrace's SVG output and Image Tracer's output are both standard SVG, so either can be opened and edited in Inkscape or Illustrator.

If you're unsure which mode suits your image, read black & white vs colour tracing, or go straight to PNG to SVG.

Try it

Open Image Tracer, drop in an image and watch the trace update as you move the sliders. It's free, open source and runs entirely in your browser.

Potrace is a trademark of its respective owner. Image Tracer is an independent project and is not affiliated with or endorsed by the Potrace project.

Frequently asked questions

Is Image Tracer based on Potrace?
It is inspired by Potrace's approach (outline, polygon, curve fitting and optimisation) but is a separate implementation written for the browser, not Potrace itself.
Can Potrace trace colour images?
Potrace traces bitmaps, so colour or greyscale images are reduced to one bitmap first, for example with the bundled mkbitmap tool. Image Tracer has a Colour mode that traces 2–32 colours directly.
Is there a graphical version of Potrace?
Potrace itself is a command-line program and library, but other applications embed it; Inkscape's Trace Bitmap, for example, uses Potrace for its main modes.
Can Image Tracer process many images at once like a Potrace script?
No. Image Tracer traces one image at a time. For batch work, Potrace on the command line is the better tool.
Which output formats do they support?
Image Tracer outputs SVG only. Potrace supports SVG, PDF, EPS, PostScript, DXF, GeoJSON, PGM, Gimppath and XFig.

Last updated

Your sharpest image is one drop away

Open Image Tracer, drop in a file and download a clean SVG in about ten seconds.

Convert your image for free
  • No account required
  • No watermark