--- id: potracer version: "0.0.4" license: GPLv2+ license_treatment: copyleft maintenance: dormant --- # potracer — Python Potrace License: copyleft · Maintenance: dormant · Downloads: 88.1K/mo ## 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 above — verify before relying. Converts bitmap images to vector graphics by tracing outlines, implemented in pure Python as a port of Peter Selinger's Potrace algorithm. 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 pip install potracer uv add potracer poetry add potracer ## Installing potracer 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. 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() Requires numpy for bitmap structures. Pure Python implementation is approximately 500x slower than the original C version. 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: unspecified - Install friction: low - Maintenance: dormant - Downloads: 88.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags bitmap to vector tracing, image vectorization python, potrace python port, outline tracing algorithm, raster to vector conversion, image edge detection tracing, vectorize bitmap images, image-processing, vectorization, pure-python [View on SkillFed](https://skillfed.io/packages/potracer) · [View on PyPI](https://pypi.org/project/potracer/)