Last modified: 2012-01-19 14:26:38 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 13214 - <gallery> shouldn't rescale small bitmap images
<gallery> shouldn't rescale small bitmap images
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: 21367 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2008-03-01 19:54 UTC by Ryan Schmidt
Modified: 2012-01-19 14:26 UTC (History)
7 users (show)

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


Description Ryan Schmidt 2008-03-01 19:54:12 UTC
currently when a <gallery> tag is used on a small image, it blows it up beyond a recognizable point (see URL). I've browsed through the code, but I can't figure out what's causing it. Ideally, the resizing in the gallery should only apply to images that are LARGER than 120x120, not all images. Smaller images should stay small and just be centered horizontally and vertically within the frame.
Comment 1 Brion Vibber 2008-03-02 21:56:23 UTC
I've lost track of whether we're allegedly scaling up on purpose or not scaling up on purpose.

cf bug 3499, from back when we didn't scale them up.

Comment 2 Huji 2008-03-02 22:37:45 UTC
With r31473, I applied what is requested here. As the opposite (bug 3499) was turned down as WONTFIX, I thought this one should be FIXED. 
Comment 3 Huji 2008-03-03 08:00:27 UTC
Reverted by brion on r31477, because of causing fatal errors.
Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2008-03-03 15:14:47 UTC
*** Bug 3499 has been marked as a duplicate of this bug. ***
Comment 5 Huji 2008-03-08 19:00:32 UTC
Brion, I can't reproduce the issue you mentioned when reverting r31473. Can you please provide more details?
Comment 6 Brion Vibber 2008-03-10 19:13:06 UTC
Run the parser tests:

Running test Gallery... Fatal error: Call to a member function getWidth() on a non-object in /Library/WebServer/Documents/trunk/includes/ImageGallery.php on line 249
Comment 7 Raimond Spekking 2009-10-31 21:15:48 UTC
*** Bug 21367 has been marked as a duplicate of this bug. ***
Comment 8 Guillaume Paumier 2009-12-31 01:54:16 UTC
(In reply to comment #1)
> I've lost track of whether we're allegedly scaling up on purpose or not scaling
> up on purpose.
> cf bug 3499, from back when we didn't scale them up.

If I understand correctly:
* bug 3499 was a request to scale up small SVGs, because they're resizable without pixelation. 
* bug 13214 is a request *not* to scale up small bitmap images, because of the induced pixelation.

Changing summary accordingly.
Comment 9 TMg 2011-10-24 15:09:34 UTC
Is anybody working on this? I tried this at Commons today. Currently, all small images are scaled up in a <gallery>.

As said before, for small SVG images this perfectly makes sense since (almost) all SVG images can be scaled up without pixelation.

For small bitmap images (PNG, JPG and so on) this does not make sense. It looks horribly blurry in all current web browsers since all web browsers added bicubic interpolation to their current versions.

Here is an example where (from my point of view) it's obvious this behavior is wrong:

File:Icon External Link.svg|SVG
File:Icon External Link.png|PNG
Comment 10 Subfader 2012-01-19 14:26:31 UTC
Small thumbs are still upscaled.

Very disappointing cos it seems so easy to fix.

[For the dumb search: Dont' enlarge upscale resize small smaller thumbs thumbnails images gallery]
Comment 11 Subfader 2012-01-19 14:26:38 UTC
*** Bug 3510 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.