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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 2632 - Images resize bigger than the original size
Images resize bigger than the original size
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
Depends on:
  Show dependency treegraph
Reported: 2005-06-30 18:35 UTC by Borb
Modified: 2010-05-15 15:38 UTC (History)
2 users (show)

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


Description Borb 2005-06-30 18:35:50 UTC
I am not sure if this is actually a bug but it does produce some undesirable
results especially with templates. Anyway:
When you insert a size into an image tag like
<nowiki>[[image:eg.png|100px]]</nowiki> mediawiki used to ignore it if the image
was smaller than that size. For example if the image was, in fact, 50px,
mediawiki would just leave it at 50px. But now it will actually make it bigger.
It only makes it wider though not taller so thats why I think this is probably a

To reproduce the bug, put a tag to make an image bigger than its original size.
Or take a look at my user page on wikipedia which is where i noticed it:
Comment 1 Borb 2005-07-01 22:05:49 UTC
I have a suggested solution:
The software should calculate the correct height value based on the ratio of the
original size. I probably dont need to explain how to do this since I can do it
and all I have ever made is a blog.

Either that or just put the 1.4 behaiviour back which was to ignore the size
attribute if the original file was smaller. Why would one want to make an image
bigger than its original size, especialy considering the crapness of browser
resizing software. I think that this solution is better because I sometimes
(lazily) leave the size attribute in even though I know that the image is small
enough anyway. This is why my user page looks a little crap now. Of course, it
looked great before, lol.
Comment 2 Antoine "hashar" Musso (WMF) 2005-07-04 00:16:17 UTC
The height of the new zoomed image was not computed.
Commited in cvs, thanks for the report.
Comment 3 Antoine "hashar" Musso (WMF) 2005-07-04 01:10:00 UTC
*** Bug 2616 has been marked as a duplicate of this bug. ***

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