Comment 0 for bug 1306662

Revision history for this message
su_v (suv-lp) wrote : trunk: '-i -j' for plain SVG export fails to adjust page size correctly (rev >= r13268)

Steps to reproduce:

1) launch current trunk with default (new) prefs, default new document (non-localized)
2) draw a rect in the center of the page
3) save
4) on the command line, query the object id:

$ inkscape -f drawing.svg --query-all

5) export just the rect to PNG:

$ inkscape -f drawing.svg -i rectXXXX -j -e drawing-rect.png

5) export just the rect to a plain SVG file:

$ inkscape -f drawing.svg -i rectXXXX -j -l drawing-rect-plain.svg

6) compare PNG and SVG export

Expected result:
The document size fits tightly around the visual bbox of the selected object, both in PNG and SVG.

Actual result:
In the exported Plain SVG file, the page borders have been adjusted to match the object's visual bbox size, but the object itself is vertically offset (outside the page borders), and the page area is empty.

Note: the new features committed in r13268 are undocumented at this point (the man page needs to be updated accordingly)
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/13268>