Skip to content
Berteh edited this page Mar 18, 2014 · 20 revisions

svg-objects-export

Usage examples

Interesting usage examples to integrate in your own workflows: (please contribute!)

  • To export all "group" objects with an id or label that has been modified in inkscape, as long as the id and label don't match: ./svg-objects-export.py --xpath "//svg:g[@inkscape:label!=@id]" input.svg

  • To export all layers of a file in the area of the page first make sure all layers are visible (yes: all at the same time!), save and run: ./svg-objects-export.py --xpath "//svg:g[@inkscape:groupmode='layer']" --extra '--export-area-page --export-id-only' input.svg

Complementary tools

  • To turn the png into jpgs from command line there is imagemagick: (careful: mogrify command overwrites files without warning) mogrify -format jpg -quality 100 *.png
Clone this wiki locally