inkscape

inkscape

TLDR

Open an SVG file in the Inkscape GUI

>_ inkscape [filename.svg]
copy

Export an SVG file into a bitmap with the default format (PNG) and the default resolution (90 DPI)

>_ inkscape [filename.svg] -e [filename.png]
copy

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]
copy

Export a single object, given its ID, into a bitmap

>_ inkscape [filename.svg] -i [id] -e [object.png]
copy

Export an SVG document to PDF, converting all texts to paths

>_ inkscape [filename.svg] --export-pdf=[filename.pdf] --export-text-to-path
copy

Duplicate the object with id="path123", rotate the duplicate 90 degrees, save the file, and quit Inkscape

>_ inkscape [filename.svg] --select=path123 --verb=EditDuplicate --verb=ObjectRotate90 --verb=FileSave --verb=FileQuit
copy

Copied to clipboard
free 100$ digital ocean credit