potracer
Python Potrace
Decision gist · record as of 2026-08-14
Yes, if you need image vectorization and want to avoid compilation or OS-specific installation problems. The pure Python approach trades speed for universal compatibility. Maintenance is dormant but stable—no active development, but no known vulnerabilities and the repository remains unarchived. Suitable for general use unless you need production-grade performance on large batches.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires numpy for bitmap structures.
- Pure Python implementation is approximately 500x slower than the original C version.
- Low friction installation with a single runtime dependency (numpy).
License · maintenance · safety
GPLv2+ (copyleft) — Licensed under GPLv2+ (copyleft). Any derivative work or distribution must be released under compatible terms. The license also permits relicensing under Peter Selinger's original Potrace terms if those become more permissive.
last release 2022-01-26 (1661 days) · last repo commit 2024-05-09 · 166 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 88,080 downloads/mo, #13,749 on PyPI
Alternatives
Verify before relying
pip install potracer
import potracer
# Trace a bitmap to vector paths
tracer = potracer.Potrace(bitmap_data)
vectors = tracer.trace()- Exact API compatibility with pypotrace and whether it truly functions as a drop-in replacement in all scenarios.
- Whether the optional CLI extra (potrace-cli) is actively maintained separately.
- Real-world performance characteristics and whether 500x slowdown is acceptable for your use case.
What it is and what it does
Potracer is a pure Python implementation of Peter Selinger's Potrace, an algorithm for converting bitmap images into vector graphics by tracing their outlines. Unlike other Python bindings to Potrace such as pypotrace, this port avoids compilation and OS-specific installation issues by implementing the algorithm entirely in Python, making it compatible across platforms.
The library is designed as a drop-in replacement for pypotrace, so existing code using that library can often switch to potracer without modification. It depends only on numpy for bitmap handling. The trade-off is speed: being pure Python, it runs approximately 500x slower than the original C implementation, but remains practical for general use. An optional CLI extra is available for command-line tracing operations.
Use it for
- Convert scanned documents or hand-drawn sketches to scalable vector formats without compilation hassles.
- Batch-process bitmap images to vectors in Python scripts where C dependencies are unavailable or problematic.
- Replace pypotrace in existing projects when installation or OS compatibility becomes an issue.
- Integrate image vectorization into cross-platform Python applications without native library dependencies.
- Trace logo artwork or simple graphics from raster sources for design workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need image vectorization and want to avoid compilation or OS-specific installation problems.
The pure Python approach trades speed for universal compatibility. Maintenance is dormant but stable—no active development, but no known vulnerabilities and the repository remains unarchived. Suitable for general use unless you need production-grade performance on large batches.
Install
potracer on PyPI
Before you install
Low friction installation with a single runtime dependency (numpy). Dormant maintenance status—last release was in January 2022—but the repository remains active and unarchived with no known security vulnerabilities.
Requires numpy for bitmap structures. Pure Python implementation is approximately 500x slower than the original C version.
License in practice
Licensed under GPLv2+ (copyleft). Any derivative work or distribution must be released under compatible terms. The license also permits relicensing under Peter Selinger's original Potrace terms if those become more permissive.
Quickstart
pip install potracer
import potracer
# Trace a bitmap to vector paths
tracer = potracer.Potrace(bitmap_data)
vectors = tracer.trace()
Verify before relying
- Exact API compatibility with pypotrace and whether it truly functions as a drop-in replacement in all scenarios.
- Whether the optional CLI extra (potrace-cli) is actively maintained separately.
- Real-world performance characteristics and whether 500x slowdown is acceptable for your use case.
Package facts
| License | GPLv2+ copyleft |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagenumpy |
| Maintenance | Dormant 1,661 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 88,080 / month, #13,749 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Multimedia :: GraphicsTopic :: Multimedia :: Graphics :: Graphics ConversionTopic :: Utilities |
Evidence: potracer-0.0.4-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “bitmap to vector tracing”
- potracerConverts bitmap images to vector graphics by tracing outlines,…
- rlPyCairoA Cairo-based rendering backend plugin that generates bitmap and…
- vtracerConverts raster images (JPG, PNG) into vector graphics (SVG) by…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also vtracer · rlPyCairo · svglib · scour · dash-svg · svgwrite · CairoSVG · vtk · winrt-Windows.Graphics.Imaging · epaper-dithering