Skip to main content

Crate pngtosvg

Crate pngtosvg 

Source

Functionsยง

convert_file_to_svg
Reads a file from path, converts it to an RGBA image, and then converts it to an SVG string using the rgba_image_to_svg_contiguous function.
rgba_image_to_svg_contiguous
This function processes the image to find contiguous regions of the same color and generates SVG paths for them.