2016-03-22 21:33:52 +00:00
|
|
|
# inkscape
|
|
|
|
|
|
|
|
> An SVG (Scalable Vector Graphics) editing program.
|
2020-08-20 13:09:34 +01:00
|
|
|
> For Inkscape versions up to 0.92.x, use -e instead of -o.
|
2019-06-05 09:05:48 +01:00
|
|
|
> More information: <https://inkscape.org>.
|
2016-03-22 21:33:52 +00:00
|
|
|
|
|
|
|
- Open an SVG file in the Inkscape GUI:
|
|
|
|
|
|
|
|
`inkscape {{filename.svg}}`
|
|
|
|
|
2020-08-20 13:09:34 +01:00
|
|
|
- Export an SVG file into a bitmap with the default format (PNG) and the default resolution (96 DPI):
|
2016-03-22 21:33:52 +00:00
|
|
|
|
2020-08-20 13:09:34 +01:00
|
|
|
`inkscape {{filename.svg}} -o {{filename.png}}`
|
2016-03-22 21:33:52 +00:00
|
|
|
|
|
|
|
- Export an SVG file into a bitmap of 600x400 pixels (aspect ratio distortion may occur):
|
|
|
|
|
2020-08-20 13:09:34 +01:00
|
|
|
`inkscape {{filename.svg}} -o {{filename.png}} -w {{600}} -h {{400}}`
|
|
|
|
|
|
|
|
- Export the drawing (bounding box of all objects) of an SVG file into a bitmap:
|
|
|
|
|
|
|
|
`inkscape {{filename.svg}} -o {{filename.png}} -D`
|
2016-03-22 21:33:52 +00:00
|
|
|
|
|
|
|
- Export a single object, given its ID, into a bitmap:
|
|
|
|
|
2020-08-20 13:09:34 +01:00
|
|
|
`inkscape {{filename.svg}} -i {{id}} -o {{object.png}}`
|
2016-03-22 21:33:52 +00:00
|
|
|
|
|
|
|
- Export an SVG document to PDF, converting all texts to paths:
|
|
|
|
|
2020-08-20 13:09:34 +01:00
|
|
|
`inkscape {{filename.svg}} -o {{filename.pdf}} --export-text-to-path`
|
2016-03-22 21:33:52 +00:00
|
|
|
|
2016-09-09 04:02:40 +01:00
|
|
|
- Duplicate the object with id="path123", rotate the duplicate 90 degrees, save the file, and quit Inkscape:
|
2016-03-22 21:33:52 +00:00
|
|
|
|
2020-08-20 13:09:34 +01:00
|
|
|
`inkscape {{filename.svg}} --select=path123 --verb="EditDuplicate;ObjectRotate90;FileSave;FileQuit"`
|