From: JunsuChoi Date: Thu, 17 Sep 2020 11:35:43 +0000 (+0900) Subject: ReadMe: Add description for svg2png (#62) X-Git-Tag: accepted/tizen/unified/20200923.024103~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba81ee6a6577258272c46697de56e8ba8da8f5c8;p=platform%2Fcore%2Fgraphics%2Ftizenvg.git ReadMe: Add description for svg2png (#62) Change-Id: Ieec329b35070308614fa6f774e1b92f2c52e62b1 --- diff --git a/README.md b/README.md index 5c1e753..cd4d86d 100644 --- a/README.md +++ b/README.md @@ -149,8 +149,31 @@ Lastly, terminate the engine after usage. tvg::Initializer::term(tvg::CanvasEngine::Sw); ``` [Back to contents](#contents) -
-
+ + +## SVG to PNG +If you want to preview ThorVG renderer's SVG output, you can use `svg2png` converter which can be used to convert SVG file to PNG file. + +To build `svg2png`, you need to change the build option. +``` +meson -Dutility=svg2png . build +``` +Or you can add `svg2png` value to `utility` option in `meson_option.txt`. Build output is located in `builddir/src/bin/svg2png/` + +`svg2png` creates `FILENAME.svg.png` by entering path of svg file, resolution, and background color. +``` +Usage: + svg2png [svgFileName] [Resolution] [bgColor] + +Examples: + $ svg2png input.svg + $ svg2png input.svg 200x200 + $ svg2png input.svg 200x200 ff00ff +``` + +[Back to contents](#contents) + + ## API Bindings Our main development APIs are written in C++ but ThorVG also provides API bindings such as: C.