Last modified: 2014-05-30 18:02:20 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 9534 - Image resizing broken when image is not thumbnailed
Image resizing broken when image is not thumbnailed
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-04-08 23:17 UTC by imslproject
Modified: 2014-05-30 18:02 UTC (History)
4 users (show)

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


Description imslproject 2007-04-08 23:17:37 UTC
The image display size sent to the browser is incorrect when the image is not 
thumbnailed. A test page for this can be found here: 

The first image should be resized to fit into a 500x200 box, but instead it is resized 
to fit outside a 500x200 box. In other words, the image ''minimal'' size becomes 
500x200 instead of the ''maximum'' size. The specification calls for the 
<nowiki>[[|123x456px]]</nowiki> format to mean the maximum size and not 
the minimum size: []
Comment 1 Brion Vibber 2007-04-09 19:37:41 UTC
If I'm not mistaken, the issue here is that the image isn't getting thumbnailed
server-side due to its large pixel size;
due to problems with resizing large PNG images, we have server-side resizing
disabled for very large PNG images.

Then, in the code path for displaying images scaled client-side, the box-fitting
scaling mode doesn't appear to be treated correctly: only the width parameter is
taken into account, rather than the width and height specified for the box.
Comment 2 imslproject 2007-04-09 22:32:04 UTC
Actually, I already knew from some devs talking to me on IRC that images larger 
than 12MP are not thumbnailed; I'm fine with that :) The problem is the second 
issue you were talking about, with the height not taken into account.
Comment 3 C. Scott Ananian 2014-05-29 20:04:16 UTC
Moved to the 'JavaScript' component.  It doesn't seem to be a parser bug, it seems to be a bug in the client-side javascript scaling.
Comment 4 Bartosz Dziewoński 2014-05-30 18:02:20 UTC
There is no such thing as "client-side javascript scaling" in core MediaWiki, as far as I know.

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