A tool that use the contour_tracing library
Features from the contour_tracing library:
- Trace contours using the Theo Pavlidis' algorithm (connectivity: 4-connected)
- Trace outlines in clockwise direction
- Trace holes in counterclockwise direction
``` -s, --size Add the width, height and viewBox attributes -d, --ids Add the RGB colors and opacity values as id attributes -k, --inkscape Add some Inkscape attributes (transparent background, pixel units, grid, snapping, ...) -r, --rendering Set the shape-rendering attribute to crispEdges -c, --closepaths Close the paths with the SVG Path Z command
-z, --zoom
C:\>raster2svg.exe -s -d -k -r -i rust_input.png -o rust_output.svg
- rustinput.png:
(click on it to view the source)
(Thanks Nayuki for your QR Code generator)
C:\>raster2svg.exe -s -z 800 -k -r -l 000000ff -b ffffffff -i qrcode_input.png -o qrcode_output.svg
- qrcodeinput.png:
(click on it to view the source)
raster2svg https://github.com/STPR/raster2svg
Copyright (c) 2022, STPR - https://github.com/STPR
SPDX-License-Identifier: EUPL-1.2
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.