Comment 19 for bug 165952

Revision history for this message
su_v (suv-lp) wrote :

<somehwat off-topic>
Now that many images are likely to be imported scaled, taking care of reported issues with regard to SVG compliance might need to be further investigated with higher priority:
- Bug #461467 in Inkscape: “Image scale saved incorrectly”
- Bug #616717 “Resized bitmap images are rendered differently by Firefox or Batik ('preserveAspectRatio' attribute not set)”
- Bug #924377 “wrong default value for image preserveAspectRatio”
as well as
- Bug #371297 “Feature request: Do not optimize transforms on Image objects”

a) for bitmap images imported via Inkscape, one might consider to simply add the 'preserveAspectRatio="none"' explicitly and always - else it would need to be added whenever the image itself is resized/scaled non-uniformly later on, and removed again as soon as the ratio of the new size matches the original ratio.
b) when rendering externally created SVG files, Inkscape's renderer needs to respect the default value 'xMidYMid' (Force uniform scaling) as defined in the SVG 1.1 spec, if the attribute 'preserveAspectRatio' is missing.
</somehwat off-topic>