Page MenuHomePhabricator

SVG: preserveAspectRatio attribute not honoured
Closed, ResolvedPublic

Description

Author: Martin.vGagern

Description:
I have some SVG files that use width and height to match other images from the
same category as well as viewPort to specify a user coordinate system whcih
might be different for the different images. According to the spec, specifying
preserveAspectRatio="xMinYMin meet", the aspect ratio should be preserved, and
the remaining space be padded transparently. The MediaWiki rendering engine does
not preserve the aspect ratio but instead stretches the image to fill both
dimensions.

See http://www.w3.org/TR/SVG11/coords.html#PreserveAspectRatioAttribute


Version: unspecified
Severity: normal
OS: Linux
Platform: PC
URL: http://commons.wikimedia.org/wiki/Image:Wallpaper_group_diagram_p4g.svg

Details

Reference
bz5109

Related Objects

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:07 PM
bzimport set Reference to bz5109.
bzimport added a subscriber: Unknown Object (MLST).

This is fixed in librsvg 2.14; upgrade will fix it.

Ok, action=purge can now be used on an image page to force images to rerender.
(Be careful about caching; make sure it reloads the new image!)