This is a Python port of Pixels to SVG, which is itself inspired by px2svg. I did the Python port since Python-based scripting fits better with my workflow than JS-based scripting.
Essentially, each pixel of the original image is put into an SVG rectangle so a lowres image can be scaled without blurriness! Here's quote from Pixels to SVG: The image data is extracted from a canvas, and separated by color. The coordinates for each color are combined into single runs where possible to keep the path data syntax short, then merged into one path with a stroke of the color.
Just like Pixels to SVG, this works best with 8-bit images, or graphics where colors are limited and the dimensions are relatively small.
If you like my projects, please consider supporting me!
Metadata
Release files for pypix2svg 0.1.0
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 |
|---|---|---|---|---|
| pypix2svg-0.1.0.tar.gz | 42.3 kB | Without provenance | Details for pypix2svg-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pypix2svg-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pypix2svg-0.1.0-py3-none-any.whl |
Total release size: 69.1 kB
Release files / pypix2svg-0.1.0.tar.gz
| Download URL | pypix2svg-0.1.0.tar.gz |
|---|---|
| Size | 42.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93388141fe9c6e2e347efe4cdf2088fd4ad5f8f5d5aceaefa31bf5fb223d6d66
|
|
BLAKE2b-256 checksum How to use checksums |
9bc934c4be6c1822fdcb5134411607a3c4e49235aba77de0bde60c9d90e39118
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / pypix2svg-0.1.0-py3-none-any.whl
| Download URL | pypix2svg-0.1.0-py3-none-any.whl |
|---|---|
| Size | 26.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e1aec77360922caf1af0c0f0e8212862c1b3e0ba012f6f82f0d4653a48afa63
|
|
BLAKE2b-256 checksum How to use checksums |
342f517a008143c57d0a10f11ce984730bcb59cbac76ef90f8057dcb13cda33e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for pypix2svg 0.1.0
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.