Expand description
§pngv
A library for converting PNG images to color matrices and reconstructing them as PNG or SVG files with 1x1 pixel vectors.
§Features
- Encode: Convert PNG images to JSON color matrices (
.pngvformat) - Decode: Reconstruct PNG images from
.pngvfiles - SVG Export: Generate SVG files with 1x1 vector pixels from
.pngvfiles
§Example
use pngv::{encode_to_pngv, decode_from_pngv, decode_to_svg};
// Encode a PNG to .pngv format
encode_to_pngv("image.png", "image.pngv").unwrap();
// Decode back to PNG
decode_from_pngv("image.pngv", "output.png").unwrap();
// Export to SVG
decode_to_svg("image.pngv", "output.svg").unwrap();Functions§
- decode_
from_ pngv - Decodes a
.pngvfile and reconstructs it as a PNG image - decode_
to_ svg - Decodes a
.pngvfile and generates an SVG with 1x1 vector pixels - encode_
to_ pngv - Encodes a PNG image to a
.pngvcolor matrix file