Inkscape-created svg is rendered differently in Inkscape and Chrome
Bug #1546099 reported by
Pavils Jurjans
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
Please consider the attached svg file.
It contains two objects, a line and a rectangle, that appear of equal width, when viewed in Inkscape. The line is a <path> element with node coordinates in pixel units, but the <rect> object is defined using mm units.
When this svg is opened in Google Chrome, the rectangle is slightly wider.
Apparently Inkscape and Chrome use different px/mm ratios. Isn't there some generally agreed standard about this ratio? Or maybe there is some way how to define this ratio in svg file?
I understand that using mixed units is generally bad idea, but it causes me problems in much more complex solution than just this attached example.
To post a comment you must log in.
which inkscape version ? Tried here with Inkscape 0.91 r13725, no problem (line is way smaller, as rendered in chromium and in firefox)
The px/mm is defined in the file : <svg [...] width="120mm" height="100mm" viewBox="0 0 425.19685 354.33071" [...]
indicates that 1mm = 3.5433 px (aka user units)