Page MenuHomePhabricator

Some images don't resize correctly when using maximum height
Closed, ResolvedPublic

Description

Author: mx.2000

Description:
When specifying image height and width for a thumb, images are sometimes just
one pixel too short. It only seems to happen with portrait format SVG images.

See the URL for a demonstration.

Regards,
Martin


Version: 1.6.x
Severity: minor
URL: http://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29#The_Flag_of_Nepal_.28possible_bug_in_image_resizing.3F.29

Details

Reference
bz5062

Event Timeline

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

It was always rounding down when scaling a height; sometimes this produced
a width one pixel shorter than the maximum allowable size.

Now changed to round up if that will still fit.

As pages are purged or edited they should start showing the correct sizes.