Last modified: 2010-05-15 15:38:43 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 T4632, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2632 - Images resize bigger than the original size
Images resize bigger than the original size
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.5.x
All All
: Normal normal (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
http://en.wikipedia.org/wiki/User:Borb
:
Depends on:
Blocks:
  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: ---


Attachments

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
bug.

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:
http://en.wikipedia.org/wiki/User:Borb.
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.


Navigation
Links