Installing
pip install potrace-cli
Command Line Usage
This installs an entrypoint for the script potracer which does similar and parallel things to potrace.
usage: potracer [-h] [-v] [-l] [-o OUTPUT] [-b {svg,jagged-svg}]
[-z {black,white,left,right,minority,majority,random}]
[-t TURDSIZE] [-a ALPHAMAX] [-n] [-O OPTTOLERANCE] [-C COLOR]
[-i] [-k BLACKLEVEL] [-s SCALE] [-1]
[filename]
positional arguments:
filename an input file
optional arguments:
-h, --help show this help message and exit
-v, --version prints version info and exit
-l, --license prints license info and exit
-o OUTPUT, --output OUTPUT
write all output to this file
-b {svg,jagged-svg}, --backend {svg,jagged-svg}
select backend by name
-z {black,white,left,right,minority,majority,random}, --turnpolicy {black,white,left,right,minority,majority,random}
how to resolve ambiguities in path decomposition
-t TURDSIZE, --turdsize TURDSIZE
suppress speckles of up to this size (default 2)
-a ALPHAMAX, --alphamax ALPHAMAX
corner threshold parameter
-n, --longcurve turn off curve optimization
-O OPTTOLERANCE, --opttolerance OPTTOLERANCE
curve optimization tolerance
-C COLOR, --color COLOR
set foreground color (default Black)
-i, --invert invert bitmap
-k BLACKLEVEL, --blacklevel BLACKLEVEL
invert bitmap
Requirements
- PIL/Pillow is required for image loading and modifications.
- Potracer for potracing.
License
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
Furthermore, this is permitted to be relicensed under any terms the Peter Selinger's original Potrace is licensed under. If he broadly publishes the software under a more permissive license this port should be considered licensed as such as well. Further, if you purchase a proprietary license for inclusion within commercial software under his Dual Licensing program your use of this software shall be under whatever terms he permits for that. Any contributions to this port must be made under equally permissive terms.
"Potrace" is a trademark of Peter Selinger.
Metadata
Release files for potrace-cli 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| potrace-cli-0.0.4.tar.gz | 11.6 kB | Without provenance | Details for potrace-cli-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| potrace_cli-0.0.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for potrace_cli-0.0.4-py2.py3-none-any.whl |
Total release size: 24.3 kB
Release files / potrace-cli-0.0.4.tar.gz
| Download URL | potrace-cli-0.0.4.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03b5cc4506293d2e107eba9a62b836d273fa7df50459aee25fc73839840c9992
|
|
BLAKE2b-256 checksum How to use checksums |
88ea31fe131da53d6b3cf528d85f7ca9a7854eb01e37f41ed8ac8aa1f0b58b05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Release files / potrace_cli-0.0.4-py2.py3-none-any.whl
| Download URL | potrace_cli-0.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
621253196be101b26ac0d3c369123cfc469f6051dabe953fdddc065adf223338
|
|
BLAKE2b-256 checksum How to use checksums |
89cc1d248c7b81d38a87e673e7ae46f99604a16204d9516b25fea4fd1c667955
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Security for potrace-cli 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.