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 Tracer | Potrace | |
|---|---|---|
| Price | Free | Free |
| Platform / install | Any modern browser, nothing to install | Command-line program and C library; builds for Windows, macOS, Linux and other systems, and in many package managers |
| Privacy / upload | Traced on your device; never uploaded. Works offline once loaded | Runs locally |
| Input | PNG, JPEG, WebP, GIF, BMP (drag, drop or paste) | PBM, PGM, PPM and BMP |
| Black & white tracing | Yes: automatic Otsu threshold with histogram, blur, invert | Yes; traces bitmaps, with mkbitmap to pre-process greyscale and colour images |
| Colour tracing | 2–32 colours; separate shapes or stacked layers; remove background | No, input is traced as a bitmap |
| Output formats | SVG | SVG, PDF, EPS, PostScript, DXF, GeoJSON, PGM, Gimppath and XFig |
| Editing tools | None built in; live preview with paths and points | None (command line) |
| Speed / ease | Visual, live preview | Fast and scriptable; requires the command line |
| Licence | Open source | GNU 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?
Can Potrace trace colour images?
Is there a graphical version of Potrace?
Can Image Tracer process many images at once like a Potrace script?
Which output formats do they support?
Last updated
