Skip to main content

Crate pngtosvg

Crate pngtosvg 

Source

Functionsยง

convert_file_to_svg
Reads the image at path and converts it to an SVG string using rgba_image_to_svg_contiguous.
rgba_image_to_svg_contiguous
Converts an RgbaImage to an SVG string by finding contiguous regions of identical RGBA color and emitting one compact SVG path per color.