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
Hashes for pypix2svg-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e1aec77360922caf1af0c0f0e8212862c1b3e0ba012f6f82f0d4653a48afa63 |
|
MD5 | b252a8a51518af467a21c5c1b950e417 |
|
BLAKE2b-256 | 342f517a008143c57d0a10f11ce984730bcb59cbac76ef90f8057dcb13cda33e |