Page MenuHomePhabricator

MW not respecting SVG's "nominal" dimensions
Closed, ResolvedPublic

Description

Author: brianna.laugher

Description:


Version: unspecified
Severity: trivial
URL: http://commons.wikimedia.org/wiki/Image:Providence_Metro_Area.svg

Details

Reference
bz11163

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:48 PM
bzimport set Reference to bz11163.

brianna.laugher wrote:

Oops. Accidentally hit Enter.

This image has "dimensions" 800x520 (according to Inkscape and Firefox rendering), but MediaWiki reports (and shows) it as 200x200. Actually, it's not trivial... it distorts the file.

Snipping through the file...

width="100%"
height="100%"
preserveAspectRatio="xMidYMax"
viewBox="12.711167 456.56707 29.566858 19.200428"

Bleah. :)

Marking this a dupe of 3691; fix for viewbox-based aspect ratio should do the job if working properly.

  • This bug has been marked as a duplicate of bug 3691 ***