Last modified: 2014-03-10 00:23:13 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 T20014, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18014 - Thumbnailing produces much worse results for PNGs than JPG, but PNG is the only real option for serious restoration
Thumbnailing produces much worse results for PNGs than JPG, but PNG is the on...
Status: RESOLVED DUPLICATE of bug 45212
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-17 06:11 UTC by Adam Cuerden
Modified: 2014-03-10 00:23 UTC (History)
7 users (show)

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


Attachments

Description Adam Cuerden 2009-03-17 06:11:17 UTC
Compare these two files. The originals are as near-identical as a JPG and PNG can be:

http://upload.wikimedia.org/wikipedia/commons/thumb/5/58/Tameing_a_Shrew%3B_or%2C_Petruchio%27s_Patent_Family_Bedstead%2C_Gags_%26_Thumscrews.png/251px-Tameing_a_Shrew%3B_or%2C_Petruchio%27s_Patent_Family_Bedstead%2C_Gags_%26_Thumscrews.png

http://upload.wikimedia.org/wikipedia/commons/thumb/1/1a/Tameing_a_Shrew%3B_or%2C_Petruchio%27s_Patent_Family_Bedstead%2C_Gags_%26_Thumscrews.jpg/251px-Tameing_a_Shrew%3B_or%2C_Petruchio%27s_Patent_Family_Bedstead%2C_Gags_%26_Thumscrews.jpg

(Forgive the image itself - I discovered it with this image, meant to illustrate misogyny.)

As you can see, the PNG looks much, much blurrier.

However, PNG is also the only option for any serious restoration work. If we have to use JPG on Wikipedia anyway, then we're basically saying that a more-degraded file that cannot easily be edited is the only version that most people will know about.

This is a problem.
Comment 1 OverlordQ 2009-03-17 06:37:06 UTC
Likely due to the JPGs being run through a sharpen introduced from bug 6193.

PNGs aren't run through sharpen regardless of rescaling. (Might be a reason behind that, I dont know off hand)

Throw in a sharpen on them too and you'll get similar outputs:

http://toolserver.org/~overlordq/images.html

Default png, Default (sharpened) jpg, Sharpened png.
Comment 2 Adam Cuerden 2009-03-17 16:11:04 UTC
Well, maybe we should apply the same to PNG thumbnails? If the two are treated identically, it'd at least avoid a situation where a less-appropriate format gets used because of thumbnailing alone. ~~~~
Comment 3 Adam Cuerden 2009-04-18 13:44:14 UTC
Is anyone actually going to apply simple sharpening to PNGs? 
Comment 4 Tim Starling 2009-04-21 00:58:13 UTC
(In reply to comment #3)
> Is anyone actually going to apply simple sharpening to PNGs? 
> 

No. Testing during initial deployment of the sharpening feature indicated that although it improves photos, it reduces the quality of diagrams and other images with large regions of solid colour. Since photos are usually uploaded as JPEG, and diagrams are not, we applied the sharpening only to JPEGs.

Can you please explain what is this "serious restoration" that you keep going on about and why it has any relevance to Wikipedia?
Comment 5 Adam Cuerden 2009-05-18 00:10:33 UTC
Is anyone doing anything about this?
Comment 6 Tim Starling 2009-05-19 02:40:31 UTC
(In reply to comment #5)
> Is anyone doing anything about this?

You still haven't answered my prioritisation question. I need to know what priority to assign it if I'm going to work on it.
Comment 7 Adam Cuerden 2009-08-12 19:36:51 UTC
You're acting like this actually sends messages to me. If that's supposed to be the default, it's not working.

Put simply. Serious restoration is the restoring of high-resolution images of historical material. A display of such works, prepared for Wikipedia, is planned for the Tropenmusem in Amsterdam later this year, and is a big part of a major effort to get museums to open up their archives. The piss-poor handling of PNGs, and the complete lack of support for TIFFs is a huge hamper to such work. 
Comment 8 Adam Cuerden 2010-04-22 21:53:07 UTC
Seriously, are you at all familiar with Wikimedia Commons?
Comment 9 Tim Starling 2010-04-23 08:21:08 UTC
(In reply to comment #8)
> Seriously, are you at all familiar with Wikimedia Commons?

There's no need for that. I read most of the archives of Durova's blog a month or so ago. She managed to answer the question I was asking, and she did it without insults or abuse.

However, that research suggested to me some higher-priority development targets than optional sharpening, such as more efficient and less restricted scaling of very large TIFFs and PNGs, and an increase in the maximum file size limit. 

The problem with optional sharpening, or indeed any feature that encourages photographic PNGs, is that readers will then be sent a PNG thumbnail. We really want to send them a JPEG unless they specifically ask for a lossless image. With the present feature set, it would be better for all concerned if you could take the time to upload a copy of the image in JPEG format, with a link to the PNG or TIFF in the other_versions parameter, and then encourage the use of the JPEG in articles.
Comment 10 Dominic 2014-03-09 05:17:47 UTC

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

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


Navigation
Links