Plain SVG export [cli]: '-i -j' fails to fit page size correctly (rev >= r13268)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Mc |
Bug Description
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-
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://
Reproduced with Inkscape 0.48+devel r13279 on OS X 10.7.5.
Related branches
description: | updated |
summary: |
- trunk: '-i -j' for plain SVG export fails to adjust page size correctly + trunk: '-i -j' for plain SVG export fails to fit page size correctly (rev >= r13268) |
Changed in inkscape: | |
assignee: | nobody → Martin Owens (doctormo) |
summary: |
- trunk: '-i -j' for plain SVG export fails to fit page size correctly - (rev >= r13268) + Plain SVG export [cli]: '-i -j' fails to fit page size correctly (rev >= + r13268) |
Confirmed on Windows XP, Inkscape trunk revision 13293.