Page MenuHomePhabricator

Incorrectly rendered thumbnails of JPEG images on WM Commons
Closed, ResolvedPublic

Description

Author: nneonneo

Description:
Some JPEG images on Wikimedia Commons are getting their thumbnails rendered incorrectly when the thumbnail width is less than 85% of the original. It looks like the black and gray areas are missing or rendered incorrectly.

Examples:

http://commons.wikimedia.org/wiki/File:Feedbackims.jpg: 550x238

Bad thumbnail http://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Feedbackims.jpg/467px-Feedbackims.jpg
Good thumbnail http://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Feedbackims.jpg/468px-Feedbackims.jpg

http://commons.wikimedia.org/wiki/File:Wikiresponsecurves1.jpg: 1832x3460

Bad thumbnail: http://upload.wikimedia.org/wikipedia/commons/thumb/8/8e/Wikiresponsecurves1.jpg/1557px-Wikiresponsecurves1.jpg
Good thumbnail http://upload.wikimedia.org/wikipedia/commons/thumb/8/8e/Wikiresponsecurves1.jpg/1558px-Wikiresponsecurves1.jpg

I've tried these at a variety of resolutions, and the results seem to be consistent: widths below 85% produce incorrect thumbnails, while widths above 85% produce good thumbnails.

This appears to be a recent problem. A related file (uploaded by the same author, http://commons.wikimedia.org/wiki/Special:Contributions/Nbisaria, as the other two files) has a correct (cached) 300px thumbnail but broken 200, 299, 301 and 561px thumbnails:
http://en.wikipedia.org/wiki/File:Ferrell.jpg: 661x389

Bad thumbnail: http://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Ferrell.jpg/561px-Ferrell.jpg
Good thumbnail: http://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Ferrell.jpg/562px-Ferrell.jpg, http://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Ferrell.jpg/300px-Ferrell.jpg (probable cached)

Version: 1.20.x
Severity: normal

Details

Reference
bz38815

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:10 AM
bzimport set Reference to bz38815.
bzimport added a subscriber: Unknown Object (MLST).

nneonneo wrote:

Possibly related problem: in Safari (Mac OS X), all of the above-linked thumbnails (including the cached 300px Ferrell thumbnail) are showing up with black backgrounds (instead of white), which makes them very hard to read.

That is weird.

Also looks like MW's exif support isn't properly extracting exif info from that file (that or it has none which would be even weirder)

nneonneo wrote:

Found that the images were all CMYK, looks like this has been previously reported.

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

The behaviour reported here differs from bug 24854 in some respects (resolution mattering, and both the grey/black totally dissapearing without any other colour artifacts), but you're still probably right its a dupe.

Gilles triaged this task as Unbreak Now! priority.Dec 4 2014, 10:10 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Needs Triage.Dec 4 2014, 11:23 AM