pure-swift bitmap tracer
Sketch your bitmaps into SVG.
swift-potrace is a tiny command-line tool that traces round, chunky raster PNGs into smooth, scalable vectors — the Potrace algorithm, reimagined in pure Swift 6. No dependencies, runs on macOS and Linux.
Get the latest build See it trace
What it does
Reads PNG
Decodes your raster with bundled stb_image — no system image
libraries, nothing to install.
Traces curves
Fits smooth Bézier paths to every region, with corner and curve controls so you decide how crisp or rounded the result feels.
Writes SVG
Outputs tidy, resolution-independent SVG to a file or straight to
stdout for piping.
Quickstart
Build it
$ swift build -c release …or grab a prebuilt binary below.
Download the latest build
Latest build v1.0.4-beta-3 · 27 Jun 2026
Prebuilt by CI on every release and published here automatically. Prefer to build from source? See the documentation.