Page MenuHomePhabricator

SVGs rendering topping out at 1024px wide
Closed, ResolvedPublic

Description

Author: stephenshep

Description:
On the English Wikipedia SVGs are redering in a more rasterized state than usual, this results in blocky images instead of smooth SVGs.


Version: 1.13.x
Severity: normal
URL: http://en.wikipedia.org/wiki/Image:Government_Ensign_of_the_United_Kingdom.svg

Details

Reference
bz13885

Event Timeline

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

Please be as specific as possible, including an example of a page with an image displaying incorrectly.

(Note that you may be using a browser with a 'full-page zoom' feature and have accidentally zoomed in the page, which will scale up all images and make them appear blocky.)

stephenshep wrote:

I'm using IE7 and have it set to the defaults just to make sure it's not me. Look at Image:Burma Flag.svg and Image:Government Ensign of the United Kingdom.svg . They both look great in Inkscape, but the white lines ar jagged correct? I tested on another computer (Linux) and it looked the same on Firefox something-or-other.

Are your thumbnail preferences set at 1280px or higher?

There seems to be something a bit wonky that's topping out the rasterization at 1024 pixels here, which bears investigation.

That's probably thanks to this default setting...

/** Don't scale a SVG larger than this */
$wgSVGMaxSize = 1024;

Probably a bit low for a default, given that the standard options array for Image: onscreen display includes a 1280px-wide option. :)

I've pushed the limit up to 2048 both live and in r34061