Comment 3 for bug 616717

Revision history for this message
su_v (suv-lp) wrote : Re: SVG with embedded images are not readable by Firefox or Baltik

from the mozilla bug report:

> Ah, and that's because the meaning of |width="1" height="1"| is that the image
> should be fit into a 1x1 rectangle. _How_ it fits in there depends on the
> value of the preserveAspectRatio attribute. The default value if the attribute
> is not specified is "xMidYMid" according to section 7.8 of the SVG 1.1
> specification. The behavior of this is defined to be:
>
> Force uniform scaling.
> Align the midpoint X value of the element's ‘viewBox’ with the midpoint X
> value of the viewport.
> Align the midpoint Y value of the element's ‘viewBox’ with the midpoint Y
> value of the viewport.
>
> If I add preserveAspectRatio="none" to the <image>, then all the browser render
> the way Inkscape does.
>
> So sounds like this is a bug in Inkscape: it's assuming an incorrect default
> value of preserveAspectRatio.

Related issue reported in:
Bug #461467 in Inkscape: “Image scale saved incorrectly”
<https://bugs.launchpad.net/inkscape/+bug/461467>

After adding 'preserveAspectRatio="none"' to each of the scaled images the SVG file renders as expected and identically in Inkscape, Firefox and Batik.