For a SVG, can I run --verb=FitCanvasToDrawing from shell mode or silent mode

Asked by srikanth on 2018-01-03


I have a SVG and would like to run the below command in silent mode (-z / --without-gui) or shell mode:

-f <svgFile> --verb=EditSelectAll --verb=FitCanvasToDrawing --verb=FileSave --verb=FileQuit

I already tried running, but seems it's not possible. Running using -z suppresses the GUI, but the output still contains spaces around it.

When run from shell mode, I get the below error message.

** (inkscape.exe:9540): CRITICAL **: static void Inkscape::FitCanvasVerb::perform(SPAction*, void*): assertion 'ensure_desktop_valid(action)' failed
WARNING: ignoring verb FitCanvasToDrawing - GUI required for this verb.

Someone please help if it is possible to auto resize from shell mode or silent mode. I badly need this to run in silent mode, and not open up inkscape window.

Question information

English Edit question
Inkscape Edit question
No assignee Edit question
Last query:
Last reply:
Hachmann (marenhachmann) said : #1

It's not possible currently, as of Inkscape 0.92.2.

Please take a look through Inkscape's bug reports here:

and if you don't find this issue anywhere, make a new report (feature requests are treated like bug reports). You can also turn this question into a bug report, I think.

I know there are a couple of similar reports, but maybe not for this functionality.

Can you help with this problem?

Provide an answer of your own, or ask srikanth for more information if necessary.

To post a message you must log in.