Last modified: 2011-07-12 21:25:28 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 T31818, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29818 - Commons: Error creating thumbnail - PNG file with more than 12.5 million pixels
Commons: Error creating thumbnail - PNG file with more than 12.5 million pixels
Status: RESOLVED DUPLICATE of bug 9497
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://commons.wikimedia.org/wiki/Fil...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-11 20:05 UTC by Jan Kucera (Kozuch)
Modified: 2011-07-12 21:25 UTC (History)
2 users (show)

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


Attachments

Description Jan Kucera (Kozuch) 2011-07-11 20:05:09 UTC
Failed to create thumbnail

Error message: "Error creating thumbnail: Invalid thumbnail parameters or PNG file with more than 12.5 million pixels"

Example URL:
http://commons.wikimedia.org/wiki/File:ESO-Helix-WFI-phot-07a-09.png
Comment 1 Brion Vibber 2011-07-12 19:12:51 UTC
That file is indeed wayyyyy over 12.5 MP -- it clocks in at over 46 MP actually! Unfortunately our current image-scaling infrastructure is simply very inefficient with very large source PNG and TIFF files... This check is in place to prevent server meltdowns! :)

As a workaround, upload a JPEG version -- it'll be lossy, but thumbnails are inherently lossy anyway -- the vast majority of views of the image will be MUCH smaller than the original.

Even if the JPEG file's at full original size it's more likely to be able to scale successfully since the scalers can take shortcuts for JPEG it doesn't use as much memory.
Comment 2 Brion Vibber 2011-07-12 19:14:09 UTC
Removing bogus dependency -- crept in editing on wrong tab.
Comment 3 Jan Kucera (Kozuch) 2011-07-12 19:33:54 UTC
I am saying openly I do not like yourself closing such bugs with a single comment like that. Unfortunatelly, there is NO place to talk about such enhancements but this bugzilla. I wish there was a better place to track enhancement requests in a more humane manner, but unfortunatelly the Foundation is unable to supply us with such a place, a bridge between wiki and bugzilla.
Comment 4 Derk-Jan Hartman 2011-07-12 21:25:28 UTC
I wish FTL data communication for the servers.... /me waits while the foundation makes it happen.

In all seriousness though, some things just don't scale well, thumbnailing 50MB or more of PNG imagedata is one of those things.  This is a well known issue, it won't be forgotten, since it is very visible, but the solution will require a lot more time, and likely a volunteer skilled in the area of imagescaling with way too much time on his hands. The cost/benefit is just not there at the moment I think.

btw. this image is actually a dupe. closing it as such.

*** This bug has been marked as a duplicate of bug 9497 ***

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


Navigation
Links