Last modified: 2010-05-15 15:38:01 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T4616, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2616 - Image resize isn't proportional
Image resize isn't proportional
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.5.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/John_W._...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-29 20:25 UTC by Sean Lamb
Modified: 2010-05-15 15:38 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sean Lamb 2005-06-29 20:25:55 UTC
The image within the infobox on http://en.wikipedia.org/wiki/John_W._Garrett 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 -->
Comment 1 Sean Lamb 2005-06-29 21:09:51 UTC
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
Comment 2 Sean Lamb 2005-06-30 01:18:50 UTC
Tested and confirmed on Firefox 1.0 and MSIE 6.0.2800.1106.xpsp2.050301-1526;
Windows XP.
Comment 3 David Benbennick 2005-07-01 18:33:08 UTC
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 
height.

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.
Comment 4 Antoine "hashar" Musso (WMF) 2005-07-04 01:10:00 UTC
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 ***
Comment 5 Brion Vibber 2005-07-04 19:25:19 UTC
Not a duplicate of bug 2632.
Comment 6 Brion Vibber 2005-07-04 19:35:09 UTC
Made a correct fix for this now: the height was incorrectly calculated.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links