Converts the pixels of a raster image to SVG for pixel-perfectness. Best for 8-bit or lower images.
Project description
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pypix2svg-0.1.0.tar.gz
.
File metadata
- Download URL: pypix2svg-0.1.0.tar.gz
- Upload date:
- Size: 42.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93388141fe9c6e2e347efe4cdf2088fd4ad5f8f5d5aceaefa31bf5fb223d6d66 |
|
MD5 | 65810bb2348dfc7ef613b8eb43e1281f |
|
BLAKE2b-256 | 9bc934c4be6c1822fdcb5134411607a3c4e49235aba77de0bde60c9d90e39118 |
Provenance
File details
Details for the file pypix2svg-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pypix2svg-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e1aec77360922caf1af0c0f0e8212862c1b3e0ba012f6f82f0d4653a48afa63 |
|
MD5 | b252a8a51518af467a21c5c1b950e417 |
|
BLAKE2b-256 | 342f517a008143c57d0a10f11ce984730bcb59cbac76ef90f8057dcb13cda33e |