SVGs rendering topping out at 1024px wide
Closed, ResolvedPublic


Author: stephenshep

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

bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz13885.
bzimport created this task.Via LegacyApr 30 2008, 1:07 AM
brion added a comment.Via ConduitApr 30 2008, 6:46 PM

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.)

bzimport added a comment.Via ConduitApr 30 2008, 7:45 PM

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.

brion added a comment.Via ConduitApr 30 2008, 8:08 PM

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.

brion added a comment.Via ConduitApr 30 2008, 8:30 PM

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

Gilles added a project: Multimedia.Via WebDec 4 2014, 10:44 AM
Gilles moved this task to Done on the Multimedia workboard.

Add Comment