Ask Your Question
2

What is the method to extract page dimensions (width and height) of an svg file using Inkscape command-line interface (cli)?

asked 2023-05-31 19:51:53 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-31 20:17:02 +0000

devzero gravatar image

The command to extract the page dimensions (width and height) of an SVG file using Inkscape command-line interface (cli) is:

inkscape --query-width /path/to/file.svg

This command will give you the width of the SVG file in pixels.

Similarly, you can use the following command to get the height of the SVG file:

inkscape --query-height /path/to/file.svg

Both of these commands will output the dimensions in pixels.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-31 19:51:53 +0000

Seen: 8 times

Last updated: May 31 '23