Page MenuHomePhabricator

MediaWiki doesn't scale an SVG image larger than its "native" size
Closed, InvalidPublic

Description

Author: dbenbenn

Description:
See http://commons.wikimedia.org/wiki/User:Omegatron/sandbox#SVG_rendering.
That page shows a 3000px thumbnail of [[Image:223.svg]], which has a "native"
size of only 744px. As a result, MediaWiki serves
http://upload.wikimedia.org/wikipedia/commons/thumb/3/39/223.svg/744px-223.svg.png
for the 3000px thumbnail, and has the browser scale it up! Obviously, the whole
point of SVG is that you can scale it arbitrarily large; the "native" size is
meaningless and should be ignored.


Version: 1.6.x
Severity: normal
URL: http://commons.wikimedia.org/wiki/User:Omegatron/sandbox#SVG_rendering

Details

Reference
bz3449

Event Timeline

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

The maximum scaling size for SVGs is set to whichever is larger of the
native size and 1024px by default. Arbitrary scaling is neat, but we do
have limited server resources.