Crates.io | raster2svg |
lib.rs | raster2svg |
version | 1.0.14 |
source | src |
created_at | 2020-03-21 02:01:48.622378 |
updated_at | 2022-02-21 13:45:37.191405 |
description | A tool that use the contour_tracing library. |
homepage | https://github.com/STPR/raster2svg |
repository | https://github.com/STPR/raster2svg |
max_upload_size | |
id | 220849 |
size | 51,368 |
A tool that use the contour_tracing library
Features from the contour_tracing library:
-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 <PERCENT> Multiply the width and height attributes by a given percent (e.g. 250)
-l, --color <COLOR> Trace only one given color in hex notation RRGGBBAA (e.g. 112233FF)
-a, --avcolor <AVCOLOR> Avoid a given color in hex notation RRGGBBAA (e.g. 112233FF)
-b, --bgcolor <BGCOLOR> Add a background rectangle with a given color in hex notation RRGGBBAA (e.g. 112233FF)
-i, --input <INPUT> Input raster image filename (e.g. input.png)
-o, --output <OUTPUT> Output SVG filename (e.g. output.svg)
C:\>raster2svg.exe -s -d -k -r -i rust_input.png -o rust_output.svg
(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
(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.