mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-09 14:13:43 +00:00
README: updated svg2png section (#758)
This commit is contained in:
parent
e9871361a2
commit
4b8229f1c3
1 changed files with 14 additions and 3 deletions
17
README.md
17
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`:
|
Examples of the usage of the `svg2png`:
|
||||||
```
|
```
|
||||||
Usage:
|
Usage:
|
||||||
svg2png [svgFileName] [Resolution] [bgColor]
|
svg2png [svgFileName] [-r resolution] [-b bgColor]
|
||||||
|
|
||||||
|
Flags:
|
||||||
|
-r set output image resolution.
|
||||||
|
-b set output image background color.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
$ svg2png input.svg
|
$ svg2png input.svg
|
||||||
$ svg2png input.svg 200x200
|
$ svg2png input.svg -r 200x200
|
||||||
$ svg2png input.svg 200x200 ff00ff
|
$ 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.
|
||||||
|
<br />
|
||||||
|
Background color `bgColor` is three-bytes hexadecimal color value. Hash character can be skipped (both `#ffffff` and `ffffff` are accepted). Default background is transparent.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
[Back to contents](#contents)
|
[Back to contents](#contents)
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
|
|
Loading…
Add table
Reference in a new issue