Page MenuHomePhabricator

JPEG with CMYK colourspace not thumbnailed correctly
Closed, ResolvedPublic

Description

Gemeindewappen_Obdach_groß-2016.jpg (1×1 px, 1 MB)

Actual 2016 (reopened):
The CMYK JPEG https://commons.wikimedia.org/wiki/File:Gemeindewappen_Obdach_gro%C3%9F-2016.jpg is missing black color.

2012 (already fixed)
From a question on the nl-wiki helpdesk: https://nl.wikipedia.org/w/index.php?title=Help:Helpdesk&oldid=30537151#Afbeelding_bij_P.J._Proby

The mentioned picture itself looks ok:

https://commons.wikimedia.org/wiki/File:P.J._Proby_2007.jpg

But if you take the 263px version (size for inside a dutch infobox, the image
seems to be rendered completely wrong (darker):

https://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/P.J._Proby_2007.jpg/263px-P.J._Proby_2007.jpg

Did something go wrong with image scaling?


Version: unspecified
Severity: normal
URL: https://commons.wikimedia.org/wiki/File:Gemeindewappen_Obdach_gro%C3%9F-2016.jpg

Details

Reference
bz36346

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:21 AM
bzimport set Reference to bz36346.
bzimport added a subscriber: Unknown Object (MLST).

Mark: seen that they ask 'More information on exact you are operating on the images is needed.'?

Summary of the forum discussion: the image has a CMYK colourspace. ImageMagick does not convert the image to RGB, instead its many operators are expected to deal with CMYK buffers correctly. Some work, some fail spectacularly, even reading from arbitrary memory.

I've confirmed that the source image and the generated thumbnails are CMYK. Probably adding "-colorspace rgb" to the ImageMagick command line would fix it.

I've uploaded an RGB version to Commons, to fix the articles using this image. The original test case is now at

https://upload.wikimedia.org/wikipedia/commons/archive/3/3b/20120507074031!P.J._Proby_2007.jpg

Reducing priority since I assume this problem is very rare, given the low rate of reports.

(In reply to comment #4)

Reducing priority since I assume this problem is very rare, given the low rate
of reports.

It is. Thanks for your help.

(In reply to comment #4)

The original test case is now at

https://upload.wikimedia.org/wikipedia/commons/archive/3/3b/20120507074031!P.J._Proby_2007.jpg

Are you sure that is the original? I can't reproduce the original problem on my lucid box.

(In reply to comment #1)

This problem comes up periodically, so I've posted a query here:
http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=20898

Thank you for your query.

I think this bug is a duplicate of bug 24854. Could so. please resolve duplicate this one?

(In reply to comment #8)
It seems I don't have the rights to mark this as dupl. Could so else please do this?

(In reply to comment #9)

(In reply to comment #8)
It seems I don't have the rights to mark this as dupl. Could so else please do
this?

Done.

  • This bug has been marked as a duplicate of bug 24854 ***
Perhelion reopened this task as Open.EditedJul 29 2016, 1:26 PM
Perhelion subscribed.

I reopened this because https://commons.wikimedia.org/wiki/File:Gemeindewappen_Obdach_gro%C3%9F-2016.jpg is missing black color.
(The previous closing dupe-task T26854 don't apply that.

Restricted Application added a subscriber: Matanya. · View Herald Transcript
matmarex renamed this task from JPEG with CMYK colourspace not thumbnailed correctly to JPEG with CMYK colourspace not thumbnailed correctly (black color missing).Nov 7 2016, 8:05 PM
matmarex set Security to None.
matmarex added subscribers: Tgr, Aklapper.
matmarex removed a subscriber: wikibugs-l-list.

This is definitely the same issue as T141739, actually. The same ImageMagick versions are affected. (I'm not sure what the issue here was in 2012, before the recent reopening.)

Closing back again, this is a 2012 bug that was fixed at the time. For the current thumbnailing issue, see T141739.

matmarex renamed this task from JPEG with CMYK colourspace not thumbnailed correctly (black color missing) to JPEG with CMYK colourspace not thumbnailed correctly.Nov 12 2016, 8:24 AM