potrace

utility to transform bitmaps into vector graphics

Install

All systems
curl cmd.cat/potrace.sh
Debian Debian
apt-get install potrace
Ubuntu
apt-get install potrace
Alpine
apk add potrace
Arch Arch Linux
pacman -S potrace
image/svg+xml Kali Linux
apt-get install potrace
Fedora
dnf install potrace
Windows (WSL2)
sudo apt-get update sudo apt-get install potrace
OS X
brew install potrace
Raspbian
apt-get install potrace
Docker
docker run cmd.cat/potrace potrace powered by Commando

potrace

utility to transform bitmaps into vector graphics

potrace is a utility for tracing a bitmap, which means, transforming a bitmap into a smooth, scalable image. The input is a bitmap (PBM, PGM, PPM, or BMP format), and the default output is an encapsulated PostScript file (EPS). A typical use is to create EPS files from scanned data, such as company or university logos, handwritten notes, etc. The resulting image is not "jaggy" like a bitmap, but smooth. It can then be rendered at any resolution. Potrace can currently produce the following output formats: EPS, PostScript, PDF, SVG (scalable vector graphics), DXF, GeoJSON, PGM (for easy antialiasing of pixel-based images), Gimppath, and XFig. Additional backends might be added in the future.