Page MenuHomePhabricator

Image resize isn't proportional
Closed, ResolvedPublic


Author: slambo

The image within the infobox on is
smaller than the infobox's standard 280px wide. The infobox stretches it
sideways but doesn't stretch it vertically by the same proportion like it did
before the upgrade this week. It appears that the troublemaker is the "none"
modifier in the image tag.

The following code in the Wikipedia Sandbox demonstrates the issue:

[[Image:John W. Garrett.jpg|none|280px|John W. Garret]] <!-- distorted -->
[[Image:John W. Garrett.jpg|thumb|280px|John W. Garret]] <!-- proportional
resize -->

Version: 1.5.x
Severity: normal



Event Timeline

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

slambo wrote:

Just realized I didn't leave my editing/viewing software info...

Primary viewing platform:

SuSE Linux 9.0 with current updates
Firefox 1.0.2

Also tested (bug appears there too):

Konqueror 3.1.4

slambo wrote:

Tested and confirmed on Firefox 1.0 and MSIE 6.0.2800.1106.xpsp2.050301-1526;
Windows XP.

dbenbenn wrote:

See [[User:Dbenbenn/sandbox]]. With a "frame", the image is not scaled up at all.
With "thumb", the image is scaled correctly. With no frame, the width is scaled, but not the

Looking at the page source is instructive. The HTML <img> tags are

none: <img ... width="200" height="39" longdesc="/wiki/Image:WikiThanks.png" />
frame: <img ... width="43" height="39" longdesc="/wiki/Image:WikiThanks.png" />
thumb: <img ... width="200" height="181" longdesc="/wiki/Image:WikiThanks.png" />

The (height, width) should be (181, 200) in all three cases.

Fixed by fixing bug #2632 . It's comitted in cvs and should
be live soon ;)

Thanks for the report.

  • This bug has been marked as a duplicate of 2632 ***

Made a correct fix for this now: the height was incorrectly calculated.