inkscape command line support for input files/wildcards

Flesh out your ideas for new or improved Inkscape features before submitting a request.
iconberg
Posts: 36
Joined: Wed Feb 04, 2015 7:46 pm

inkscape command line support for input files/wildcards

Postby iconberg » Tue Feb 24, 2015 10:18 pm

Hi,

i would like to see wildcard support and reading input filenames from a file instead of given in commandline.
Would be nice if the used name for input is used for output to, for example: "inkscape --file test.svg --export-pdf" use test.pdf as outfile.
If you need to call inkscape for a lot of files it could give a big speed boost.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: inkscape command line support for input files/wildcards

Postby ragstian » Tue Feb 24, 2015 10:54 pm

Hi.

What you are after can be done by a script/batch-file or small program python/c/perl etc.
By using python subprocess you can even start several instances of Inkscape at the same time speeding up the processing of your data.
See the guilliotine.py file in the extension directory for an example.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar


Return to “Inkscape Ideas”