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.
script to export multiple objects at once available
script to export multiple objects at once available
Last edited by berteh2 on Mon May 06, 2013 8:42 pm, edited 1 time in total.
Re: script to export multiple objects at once available
Can you make a version that use an xpath as selector (instead of regexp) ?
Re: script to export multiple objects at once available
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.
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.