skagedal / svgclip

Clip SVG files to the size of actual drawing. Uses Inkscape to get bounding box.
46 stars 10 forks source link

New approach after inkscape 1.0 ! #8

Closed RainYang-RY closed 3 years ago

RainYang-RY commented 3 years ago

inkscape --export-type=svg -o --export-area-drawing .\test.svg

without gui.

skagedal commented 3 years ago

Nice! I included this in the README

umlaeute commented 1 year ago

With inkscape-1.2.1 (as packaged in Debian/sid), this will resave the file as --export-area-drawing.svg, without actually changing it.

the proper invocation is

inkscape --export-type=svg -o test_cropped.svg --export-area-drawing ./test.svg
skagedal commented 1 year ago

Thank you @umlaeute, that sounds reasonable. Updated README.