Edit SVG from the command line with verbs

Post questions on how to use or achieve an effect in Inkscape.
senglert
Posts: 3
Joined: Thu Mar 05, 2009 9:27 pm

Edit SVG from the command line with verbs

Postby senglert » Thu Mar 05, 2009 9:39 pm

Hi there,

i'm a coder from germany and we're developing an application to generate SVG for using it on cnc machine tools.

My shell script It is working perfectly when calling inkscape from the command line with GUI:

Code: Select all

inkscape \
   --file=front.svg \
   --verb=EditDeselect \
   --select=cc_shape_box \
   --select=cc_shape_circle \
   --verb=SelectionUnion \
   --verb=EditDeselect \
   --select=F1 \
   --select=F2 \
   --select=F3 \
   --select=F4 \
   --select=F5 \
   --select=F6 \
   --select=F7 \
   --select=F8 \
   --select=F9 \
   --select=F10 \
   --select=F11 \
   --select=F12 \
   --select=F13 \
   --select=F14 \
   --select=F15 \
   --select=F16 \
   --verb=ObjectToPath \
   --verb=SelectionUnion \
   --verb=EditDeselect \
   --verb=EditSelectAll \
   --verb=SelectionDiff \
   --verb=FileSave \
   --verb=FileClose


But if i run this with the -z / --without-gui option, nothing happens.

This app should run on an server, so i don't want to operate with the GUI, also there will be traffic on, so i'll think it will run into performance problems.

Any ideas how i could get this to work without using the GUI ?

thanks in advance!

Stefan

User avatar
loonquawl
Posts: 135
Joined: Thu May 15, 2008 7:57 pm

Re: Edit SVG from the command line with verbs

Postby loonquawl » Thu Mar 05, 2009 11:10 pm

Hi.

In the Manual, it is mentioned that the command line functions work without the GUI, with the exception of the --verb function....

I do not know why, though.

senglert
Posts: 3
Joined: Thu Mar 05, 2009 9:27 pm

Re: Edit SVG from the command line with verbs

Postby senglert » Fri Mar 06, 2009 12:12 am

Thank you for the reply!

i didn't saw this in the manual.... :? Some verbs are running, found some entries on the launchpad bug page, but not the things i need.. May i try it by running X on the server or download the files with a shell script, run the commands and upload it since the verbs are working without any GUI.

cheers,
stefan

User avatar
loonquawl
Posts: 135
Joined: Thu May 15, 2008 7:57 pm

Re: Edit SVG from the command line with verbs

Postby loonquawl » Fri Mar 06, 2009 12:41 am

I stumbled over this post, which basically suggests that there is an option one can compile inkscape with, that makes it a console-only program (its the last post on the page).

senglert
Posts: 3
Joined: Thu Mar 05, 2009 9:27 pm

Re: Edit SVG from the command line with verbs

Postby senglert » Sat Mar 07, 2009 12:33 am

oh ok, i'll try that tomorrow and will post the results here.

stefan


Return to “Help with using Inkscape”

Who is online

Users browsing this forum: No registered users and 5 guests