


This will produce two PNG files, one tightly wrapping the triangle, the other the rectangle. Export more than one object at a time to PNG files: inkscape -export-type="png" -export-id="MyTriangle MyRectangle" my_file.svg.This will produce a PNG with a file name my_file_MyTriangle.png which tightly wraps the object. Export one object from the file to a PNG, hiding all other objects: inkscape -export-type="png" -export-id="MyTriangle" -export-id-only my_file.svg.Objects that extend into the exported area will be shown. Export one object from the file to a PNG: inkscape -export-type="png" -export-id="MyTriangle" my_file.svg.This will produce a PNG with a name my_file.png Simple export of a PNG: inkscape -export-type="png" my_file.svg.Only one of -export-area, -export-area-page, -export-area-drawing, -export-use-hints will be used to determine the export area.If both -export-filename and -export-type are given, the file name extension must match the type.All files listed on the command line will be opened, processed according to export options. Use of export options will suppress the GUI. Query the geometry of all objects: inkscape -query-all.

Find the x position of a set of objects: inkscape -query-id="MyTriangle,MySquare" -query-x my_file.svg.List of available actions (very long): inkscape -action-list.List of available verbs (very long): inkscape -verb-list Verbs removed in 1.2.Extension directory: inkscape -extension-directory or inkscape -x.User data directory -user-data-directory.System data directory -system-data-directory.Debug information inskscape (library versions) -debug-info.Help (list of command line options): inkscape -help or inkscape -?.What can you do with the command line? Print out information This is a long term process and it will be awhile before we see the full benefits.Īs a first step, we've started to use the latest Gtk 3 application code for Inkscape 1.0 which has resulted in some changes in how the command line works.įor the command line parameters for Inkscape versions up to 0.92.x, please check the corresponding output of inkscape -help on the command line. Starting after the release of the 0.92.x series, Inkscape's code is undergoing a major rewrite with the dual goals of making it more powerful and flexible for the user while making it easier for the developer. 2 What can you do with the command line?.
