script to export multiple objects at once available

Using Inkscape with other software? Talk about it here.
berteh2
Posts: 5
Joined: Fri Apr 19, 2013 6:39 pm

script to export multiple objects at once available

Postby berteh2 » Mon Apr 22, 2013 7:00 am

Hello,
I just uploaded a script to export multiple objects from 1 (or many) SVG files at once, from command line, to svg, png, pdf, eps... and other export formats inkscape will support in the future.
Works great for icon sets (many icons in the same file to be exported at various resolutions), sprite sheets to individual images and bulk rasterization of hundreds of svg at once.

Objects are selected (or discared) by using regular expressions on their ID, or via XPath expression... so hopefully it suits many applications.

If your interested try it out: https://github.com/berteh/svg-objects-export
Berteh.
Last edited by berteh2 on Mon May 06, 2013 8:42 pm, edited 1 time in total.

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: script to export multiple objects at once available

Postby v1nce » Thu Apr 25, 2013 6:27 am

Can you make a version that use an xpath as selector (instead of regexp) ?

berteh2
Posts: 5
Joined: Fri Apr 19, 2013 6:39 pm

Re: script to export multiple objects at once available

Postby berteh2 » Mon May 06, 2013 8:41 pm

Hi v1nce,

The script now supports XPath to include and exclude objects to export. Thanks for the suggestion. (I edited first post accordingly)

Please use preferably the github issue tracker for support requests for this script, and add your favorite options on the wiki... it may inspire others!
B.


Return to “Inkscape & other”