Bug 315156 - CR2 files from Canon PowerShot G1 X the colours are messed up
Summary: CR2 files from Canon PowerShot G1 X the colours are messed up
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-RAW (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-14 19:13 UTC by kdebug
Modified: 2019-12-23 17:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.0.0


Attachments
Jpeg-conversion of the raw .cr2 file (69.05 KB, image/jpeg)
2013-06-02 22:01 UTC, Johannes Zarl-Zierl
Details
jpg version of the cr2 file with colours rendered correctly (1.11 MB, image/jpeg)
2013-06-03 07:20 UTC, kdebug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kdebug 2013-02-14 19:13:11 UTC
The thumbnails of the CR2 files from Canon PowerShot G1 X have the wrong colours.
The  colours are appear orange/yellow and blue.
Other RAW files e.g. Canon 5D Mark II/III  display correctly.
Also opening the file to view with another program e.g. gqview will show the correct colours in gqview.


Reproducible: Always

Steps to Reproduce:
Open thumbnail viewer.

Actual Results:  
Thumbnail colours always appear incorrect for these files.

Expected Results:  
Normal correct colours.
Comment 1 Johannes Zarl-Zierl 2013-05-29 22:22:11 UTC
Sorry for the late response.

KPhotoalbum uses libkdcraw for dealing with raw files. Do the thumbnails also appear incorrectly in e.g. gwenview or any other libkdcraw-based program?

When you display the image, are the colours displayed correctly, or are they messed up like in the thumbnail view?
Comment 2 kdebug 2013-05-29 23:00:03 UTC
The colours are incorrect in kdephotoalbum both in normal and thumbnail size.
gqview shows the correct colours.
I installed gwenview but it is unable to open this file and reports being unable to open a file of this type.

I will attach a sample CR2 file that I took with the Canon PowerShot G1 X.



(In reply to comment #1)
> Sorry for the late response.
> 
> KPhotoalbum uses libkdcraw for dealing with raw files. Do the thumbnails
> also appear incorrectly in e.g. gwenview or any other libkdcraw-based
> program?
> 
> When you display the image, are the colours displayed correctly, or are they
> messed up like in the thumbnail view?
Comment 3 kdebug 2013-05-29 23:15:07 UTC
(In reply to comment #2)
> I will attach a sample CR2 file that I took with the Canon PowerShot G1 X.

OK, it will not let me paste the image as it is too large.
It is here instead...
http://www.kitamura-studios.com/tmp/IMG_0451.CR2
Comment 4 Johannes Zarl-Zierl 2013-06-02 22:01:08 UTC
Created attachment 80267 [details]
Jpeg-conversion of the raw .cr2 file

Is this (approximately) the correct color rendition of the raw file?

On my system (debian unstable), the image is rendered consistently in kphotoalbum, showfoto, gimp, imageMagick and rawtherapee. Unfortunately I currently cannot install geeqie/gqview on my system to check the result.

Since the image is rendered the same by both kphotoalbum and showfoto, I suspect the issue lies with libkdcraw. Which version of libkdcraw are you using?
Comment 5 kdebug 2013-06-03 07:19:01 UTC
No, the colours in the image rendition are incorrect
(and the same as what I get on kdephotoalbum).
gimp also does a bad job with the colours.

I will attach a jpg version of the correctly rendered colours. (using darktable).

$ dpkg -l | grep libkdcraw
ii  libkdcraw-data 4:4.8.4-1                          all          RAW picture decoding library -- data files
ii  libkdcraw20 4:4.8.4-1                          amd64        RAW picture decoding library


(In reply to comment #4)
> Created attachment 80267 [details]
> Jpeg-conversion of the raw .cr2 file
> 
> Is this (approximately) the correct color rendition of the raw file?
> 
> On my system (debian unstable), the image is rendered consistently in
> kphotoalbum, showfoto, gimp, imageMagick and rawtherapee. Unfortunately I
> currently cannot install geeqie/gqview on my system to check the result.
> 
> Since the image is rendered the same by both kphotoalbum and showfoto, I
> suspect the issue lies with libkdcraw. Which version of libkdcraw are you
> using?
Comment 6 kdebug 2013-06-03 07:20:48 UTC
Created attachment 80272 [details]
jpg version of the cr2 file with colours rendered correctly
Comment 7 Johannes Zarl-Zierl 2013-06-03 08:33:12 UTC
Thank you for the info and for the reference image. I'm reassigning this bug to digikam/libkdcraw so it can be fixed for all other programs as well...
Comment 8 caulier.gilles 2013-06-03 08:41:03 UTC
Which libkdcraw version do you use exactly ?

In libkdcraw, there is an embeded version of libraw. Which version is used.

libraw have been updated to last 0.15.2 recently in libkdcraw. Can you update and try again ?

Gilles Caulier
Comment 9 kdebug 2013-06-03 09:14:14 UTC
I am running debian and these are the latest versions in both testing and unstable.
 $ dpkg -l | grep libraw
ii  libraw5:amd64 0.14.7-2 amd64 raw image decoder library
$ dpkg -l | grep libkdcraw
ii  libkdcraw-data 4:4.8.4-1 all RAW picture decoding library -- data files
ii  libkdcraw20 4:4.8.4-1 amd64 RAW picture decoding library

I have uploaded a Canon PowerShot G1 X raw file here:
http://www.kitamura-studios.com/tmp/IMG_0451.CR2
Comment 10 caulier.gilles 2013-12-05 23:14:30 UTC
What's news about this file using a more recent libkdcraw/libraw. Problem still reproducible ?

Gilles Caulier
Comment 11 kdebug 2013-12-06 02:14:25 UTC
I am running debian testing, and yes the problem is still there on the thumbnails.

$ dpkg -l | grep libraw | grep ii
ii  libraw9:amd64                         0.15.4-1                        amd64        raw image decoder library
kie@lime:~ $ dpkg -l | grep libkdcraw | grep ii
ii  libkdcraw-data                        4:4.11.3-1                      all          RAW picture decoding library -- data files
ii  libkdcraw22                           4:4.11.3-1                      amd64        RAW picture decoding library
Comment 12 kdebug 2013-12-08 12:50:23 UTC
Tried regenerating the thumbnails with the current library and they display correctly now.
Sorry I didn't do that at the time of my last email, I didn't think of it.

I have marked the problem as resolved.
Thanks for all your help and bug fixing.
Comment 13 caulier.gilles 2019-12-23 17:18:06 UTC
Not reproducible with digiKam 7.0.0-beta1.