From 4b8229f1c340ede65b2d91db8caf885325bc3947 Mon Sep 17 00:00:00 2001 From: Michal Maciola <71131832+mmaciola@users.noreply.github.com> Date: Mon, 30 Aug 2021 12:40:29 +0200 Subject: [PATCH] README: updated svg2png section (#758) --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 64ac1a4b..b37d2611 100644 --- a/README.md +++ b/README.md @@ -273,13 +273,24 @@ Alternatively, you can add the `svg2png` value to the `tools` option in `meson_o Examples of the usage of the `svg2png`: ``` Usage: - svg2png [svgFileName] [Resolution] [bgColor] + svg2png [svgFileName] [-r resolution] [-b bgColor] + +Flags: + -r set output image resolution. + -b set output image background color. Examples: $ svg2png input.svg - $ svg2png input.svg 200x200 - $ svg2png input.svg 200x200 ff00ff + $ svg2png input.svg -r 200x200 + $ svg2png input.svg -r 200x200 -b ff00ff + $ svg2png input1.svg input2.svg -r 200x200 -b ff00ff + $ svg2png . -r 200x200 ``` +Multiple files or directories are accepted for `svgFileName`. If a directory is applied, subdirectories are also searched. Looking for `.svg` file extension. +
+Background color `bgColor` is three-bytes hexadecimal color value. Hash character can be skipped (both `#ffffff` and `ffffff` are accepted). Default background is transparent. +
+
[Back to contents](#contents)