raster2svg crates.io

A tool that use the contour_tracing library Package

Features

Features from the contour_tracing library: Package - Trace contours using the Theo Pavlidis' algorithm (connectivity: 4-connected) - Trace outlines in clockwise direction - Trace holes in counterclockwise direction

Options

``` -s, --size Add the size of the raster image -d, --ids Add the RGB colors and opacity values as id attributes -k, --inkscape Add some Inkscape attributes (transparent background, pixel units, ...) -r, --rendering Set the shape-rendering attribute at crispEdges -c, --closepaths Close the paths with the SVG Path Z command -h, --help Prints help information -V, --version Prints version information

-i, --input Input raster image filename (e.g. input.png) -o, --output Output SVG filename (e.g. output.svg) ```

Example

rustinput.png: rust</em>input.png

C:\>raster2svg.exe -s -d -k -r -i rust_input.png -o rust_output.svg

rustoutput.svg: rust</em>output.svg (click on it to view the source)

Informations

License

raster2svg https://github.com/STPR/raster2svg

Copyright (c) 2020, STPR - https://github.com/STPR

SPDX-License-Identifier: EUPL-1.2

Contribution

Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.txt.