Last modified: 2014-05-30 18:02:20 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 T11534, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
1.10.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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

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>[[Image:Foo.bar|123x456px]]</nowiki> format to mean the maximum size and not 
the minimum size: [http://en.wikipedia.org/wiki/Wikipedia:Extended_image_syntax#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.


Navigation
Links