From d6bd08e69e22dd2141966baa2bff70a8b355bb37 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Tue, 22 Mar 2016 21:33:52 +0000 Subject: [PATCH] Create inkscape.md Most of this is based on the excellent "examples" section of Inkscape's man page: https://inkscape.org/en/doc/inkscape-man.html#examples --- pages/common/inkscape.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/inkscape.md diff --git a/pages/common/inkscape.md b/pages/common/inkscape.md new file mode 100644 index 000000000..9481fc334 --- /dev/null +++ b/pages/common/inkscape.md @@ -0,0 +1,28 @@ +# inkscape + +> An SVG (Scalable Vector Graphics) editing program. +> Use -z to not open the GUI and only process files in the console. + +- Open an SVG file in the Inkscape GUI: + +`inkscape {{filename.svg}}` + +- Export an SVG file into a bitmap with the default format (PNG) and the default resolution (90 DPI): + +`inkscape {{filename.svg}} -e {{filename.png}}` + +- Export an SVG file into a bitmap of 600x400 pixels (aspect ratio distortion may occur): + +`inkscape {{filename.svg}} -e {{filename.png}} -w {{600}} -h {{400}}` + +- Export a single object, given its ID, into a bitmap: + +`inkscape {{filename.svg}} -i {{id}} -e {{object.png}}` + +- Export an SVG document to PDF, converting all texts to paths: + +`inkscape {{filename.svg}} --export-pdf=={{filename.pdf}} --export-text-to-path` + +- Duplicate the object with id="path1555", rotate the duplicate 90 degrees, save the SVG, and quit: + +`inkscape {{filename.svg}} --select=path1555 --verb=EditDuplicate --verb=ObjectRotate90 --verb=FileSave --verb=FileClose`