Page MenuHomePhabricator

Wrong image size when using 100x200px syntax to scale image up
Closed, ResolvedPublic

Description

Author: dbenbenn

Description:
For example, if you say [[Image:Nuvola apps access.png|800x600px]], MediaWiki
tells the browser to display the image at 800x800, not 600x600. It seems that
this bug only occurs when scaling an image up. Another example: [[Image:SR map
Lambertville.svg|800x100px]] uses the 76px thumbnail (which is right), scaled to
800x1024px (which is, of course, wrong).


Version: 1.6.x
Severity: normal

Details

Reference
bz4207

Event Timeline

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

dbenbenn wrote:

Fix the problem (in Linker.php)

The patch to bug 153 had an error in Linker.php:makeImageLinkObj. Here's a
fix.

Attached: