Page MenuHomePhabricator

SVG resizing uses bitmap interpolation not vector resize
Closed, InvalidPublic

Description

Author: error401

Description:
The SVG renderer currently seems to render the image at the specified size, then
resizes it as a bitmap, resulting in poor-quality upscaling and overly-aliased
downscaling. Though not a major concern for Wiki software, it would be a
worthwile improvement to embrace the use of vector graphics over bitmaps.

See: http://en.wikipedia.org/wiki/User:Ktims/Sandbox/SVG for example.


Version: 1.5.x
Severity: enhancement

Details

Reference
bz5261

Event Timeline

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

You've requested a rendering larger than the natural size of the image, which isn't
allowed to avoid resource-hogging.

error401 wrote:

Especially on commons, I'm not sure this is a good idea. Many vector images
don't have a 'natural' size and their size is determined by context. I think it
would be more appropriate to base the resource limitation on absolute size
instead. For iconography, the natural size might be quite small, however the
ability to increase the size losslessly may be useful.

A minor thing in any case.