FitCanvasToDrawing verb on command line brining up GUI

Post questions on how to use or achieve an effect in Inkscape.
alex1234
Posts: 1
Joined: Thu Feb 11, 2010 9:10 am

FitCanvasToDrawing verb on command line brining up GUI

Postby alex1234 » Thu Feb 11, 2010 10:38 am

I'm on Windows and my co-worker re-compiled inkscape to include the console logging. I'm trying to execute the command

Code: Select all

C:\Program Files (x86)\Inkscape-console>inkscape --verb=FitCanvasToDrawing out1.svg
but I'm getting an error message

Code: Select all

(inkscape.exe:1276): Gtk-WARNING **: Could not find the icon 'object-visible'. The 'hicolor' theme was not found either, perhaps you need to install it.
You can get a copy from:
        http://icon-theme.freedesktop.org/releases

I went to the location listed in the message but didn't see where to install the file or where other .theme files were stored. I found a GTK themes installer but don't see what that has to do with the operation I'm attempting. When I use the command

Code: Select all

C:\Program Files (x86)\Inkscape-console>inkscape --verb=FitCanvasToDrawing --ver
b=FileSave --verb=FileQuit out1.svg

the operation is successful but the gui still opens and closes and takes a long time. I would like to fit the canvas to the drawing from the command line without opening the GUI. Any advice would be appreciated.

inkschaap
Posts: 36
Joined: Fri Oct 28, 2011 11:34 pm

Re: FitCanvasToDrawing verb on command line brining up GUI

Postby inkschaap » Thu Jun 30, 2016 7:06 am

Got the same issue on a Ubuntu 14.04 LTS server running Inkscape 0.48 that is doing mass conversion from AI to SVG.
What is the best way to request the "FitCanvasToDrawing" feature be added as a command line only feature,
or is that problematic for some reason?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: FitCanvasToDrawing verb on command line brining up GUI

Postby Moini » Thu Jun 30, 2016 8:44 am

I've got no clue as to if that is problematic, but trying it yields

"WARNING: ignoring verb FitCanvasToDrawing - GUI required for this verb." and the program crashes (with an emergency save...)

The place to report bugs and ask for features is at https://bugs.launchpad.net/inkscape - please do a search first before you submit a new report.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

inkschaap
Posts: 36
Joined: Fri Oct 28, 2011 11:34 pm

Re: FitCanvasToDrawing verb on command line brining up GUI

Postby inkschaap » Thu Jun 30, 2016 11:22 pm

Thanks for the information.
Here is the link to the question: https://answers.launchpad.net/inkscape/+question/295812


Return to “Help with using Inkscape”