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

Asked by srikanth

Hi,

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

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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:
https://bugs.launchpad.net/inkscape

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.