Bug 185279 - Raw pictures from Panasonic LX2 have totally wrong colours in digikam show modus
Summary: Raw pictures from Panasonic LX2 have totally wrong colours in digikam show modus
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-RAW (show other bugs)
Version: 0.9.5
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-22 22:53 UTC by woru123
Modified: 2017-07-31 15:42 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.5


Attachments
Raw file formats supported by digiKam 0.9.5 using Liraw 0.6.13 (458.40 KB, image/png)
2009-02-23 08:25 UTC, caulier.gilles
Details
Screenshot showing metadata (EXIF) in jpg-file, taken with Panasonic LX2 (752.25 KB, image/png)
2009-02-23 22:54 UTC, woru123
Details
Screenshot showing metadata (EXIF) in raw-file, taken with Panasonic LX2 (675.43 KB, image/png)
2009-02-23 22:55 UTC, woru123
Details
Panasonic LX2 RAW file loaded in digiKam 0.9.5-rc1 using libkdcraw 0.1.8 : thumbnails view (454.09 KB, image/png)
2009-02-24 19:32 UTC, caulier.gilles
Details
Panasonic LX2 RAW file loaded in digiKam 0.9.5-rc1 using libkdcraw 0.1.8 : preview mode (826.18 KB, image/jpeg)
2009-02-24 19:36 UTC, caulier.gilles
Details
Panasonic LX2 RAW file loaded in digiKam 0.9.5-rc1 using libkdcraw 0.1.8 : raw import tool (897.19 KB, image/jpeg)
2009-02-24 19:38 UTC, caulier.gilles
Details
Panasonic LX2 RAW file loaded in digiKam 0.9.5-rc1 using libkdcraw 0.1.8 : image editor (900.66 KB, image/jpeg)
2009-02-24 19:40 UTC, caulier.gilles
Details
Panasonic LX2 RAW file loaded in digiKam 0.11.0-svn using libkdcraw 0.5.0 : thumbnails view and image editor (888.49 KB, image/png)
2009-02-24 19:46 UTC, caulier.gilles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description woru123 2009-02-22 22:53:51 UTC
Version:           digikam 0.9.5-beta3 (using KDE 3.5.10)
OS:                Linux
Installed from:    Debian testing/unstable Packages

I use digikam for more than two years and never had problems with raw pictures. 

Since several days the raw pictures from my Panasonic Lumix LX2 show totally wrong colours in digikam (thumbnail, normal view and slideshow). Red clothes get green and green things get red, blue sky gets magenta. White colour (i.e. snow) is ok.
If I open these raw pictures (F4 button) in edit mode all colours are correct.
Further on exif data for exposure time show wrong (negative) values for these raw files.

These problems are reproducible.

Raw pictures from my Olympus E500 (.orf) are still correct, the same is true for all jpg files.

This problem has arised after I had installed ufraw and dcraw, but I did also some more updates for other packages at the same time which might cause the problem. 

If you need further information about package or library versions, please give me a note.
Comment 1 caulier.gilles 2009-02-22 23:27:48 UTC
Whitch libkdcraw and libraw version you use. Go to Help/About dialog for information...

Gilles Caulier
Comment 2 woru123 2009-02-23 07:55:00 UTC
Digikam uses:
Kdcraw library 0.1.7
LibRaw 0.6.3-Release

(In reply to comment #1)
> Whitch libkdcraw and libraw version you use. Go to Help/About dialog for
> information...
> 
> Gilles Caulier
Comment 3 caulier.gilles 2009-02-23 08:11:50 UTC
ok. 

I'm not sure if libraw 0.6.3 is enough to play with Panasonic Lumix LX2. Here, Alex can give us more information about.

Anyway, i recommend to checkout, compile and install last code of libkdcraw for KDE3 from svn (future 0.1.8) which include last libraw 0.6.13. I'm pretty sure that it will work with your Panasonic Lumix LX2 raw files.

Of course remove old libkdcraw before, and after to compile/install libkdcraw 0.1.8, digiKam and kipi-plugins needs to be recompiled.

For more information to know how to checkout code from svn, look here :

http://www.digikam.org/download?q=download/svn

Gilles Caulier
Comment 4 caulier.gilles 2009-02-23 08:25:13 UTC
Created attachment 31562 [details]
Raw file formats supported by digiKam 0.9.5 using Liraw 0.6.13
Comment 5 woru123 2009-02-23 08:51:53 UTC
(In reply to comment #3)
> I'm not sure if libraw 0.6.3 is enough to play with Panasonic Lumix LX2. 

I know that an earlier version of libkdcraw worked with LX2 raw files.
I found in my old packagelists libkdcraw3 (debian 0.1.4-2) and in the last packagelist there are libkdcraw4 (0.1.7-2) and libkdcraw3 (0.1.4-2) both installed (ii). 
I'm a little bit astonished to see libkdcraw4, as I still use KDE 3.5.10.

> 
> Anyway, i recommend to checkout, compile and install last code of libkdcraw for
> KDE3 from svn (future 0.1.8) which include last libraw 0.6.13. 
I will try trhis, but as this is new for me it will take a little time.
Comment 6 Alex Tutubalin 2009-02-23 09:26:58 UTC
Old Panasonic (not .RW2 but .RAW) files does not contains preview (thumbnail) image.

So, the problem is related to code, which handles preview-less images (somewhere in digiKam?).
Comment 7 caulier.gilles 2009-02-23 09:47:28 UTC
Ok, we talking about preview extraction. And yes, with current code from svn, i have fixed a little bug about.  It's not relevant of digiKam code here, but libkdcraw.

So, libkdcraw 0.1.8 will solve it.

woru123, can you send me in private some Raw files sample to test (or a link where i can download files) ? 

Gilles Caulier
Comment 8 woru123 2009-02-23 21:43:16 UTC
> 
> woru123, can you send me in private some Raw files sample to test (or a link
> where i can download files) ? 
> 
You will get a mail with a link to some pictures.
Comment 9 caulier.gilles 2009-02-23 22:01:34 UTC
Alex,

I don't know if Samsung and Panasonic RAW file is the same format, but it sound like this comment:

https://bugs.kde.org/show_bug.cgi?id=182611#c10

... is applicable here. Right ?

If yes, woru123, you need to place at the same place RAW and JPEG files taken with the same shoot, to get a fine thumbnails with RAW files.

Gilles
Comment 10 woru123 2009-02-23 22:54:07 UTC
Created attachment 31583 [details]
Screenshot showing metadata (EXIF) in jpg-file, taken with Panasonic LX2
Comment 11 woru123 2009-02-23 22:55:50 UTC
Created attachment 31584 [details]
Screenshot showing metadata (EXIF) in raw-file, taken with Panasonic LX2 

See also corresponding screenshot with jpg metadata
Comment 12 woru123 2009-02-23 23:01:01 UTC
(In reply to comment #9)
> Alex,
> 
> I don't know if Samsung and Panasonic RAW file is the same format, but it sound
> like this comment:
> 
> https://bugs.kde.org/show_bug.cgi?id=182611#c10
> 
> ... is applicable here. Right ?
> 
> If yes, woru123, you need to place at the same place RAW and JPEG files taken
> with the same shoot, to get a fine thumbnails with RAW files.
> 
> Gilles

It sounds like the other bug report, but I think it's different:
First, Samsung S85 raw doesn't conatin any metadata, Panasonic LX2 contains at least some (much less then jpeg - see attachments).
Second, in my case raw and jpeg files are always placed in the same folder in the file system.
Comment 13 woru123 2009-02-24 18:46:49 UTC
> Anyway, i recommend to checkout, compile and install last code of libkdcraw for
> KDE3 from svn (future 0.1.8) which include last libraw 0.6.13. I'm pretty sure
> that it will work with your Panasonic Lumix LX2 raw files.
> 
> Of course remove old libkdcraw before, and after to compile/install libkdcraw
> 0.1.8, digiKam and kipi-plugins needs to be recompiled.
> 
> For more information to know how to checkout code from svn, look here :
> 
> http://www.digikam.org/download?q=download/svn

I tried to follow the instructions, but I did not succeed to build a new digikam version. 
First of all, I didn't have svn and apt-cache search svn brought a lot of realted packages and I decided to take kdesvn. I then checked out the sources and changed to the download directory.

Then the problems started here:

wolfgang@cork:~/digikam/libs$ make -f  Makefile.cvs
This Makefile is only for the CVS repository
This will be deleted before making the distribution

./admin/cvs.sh: 632: ./admin/detect-autoconf.pl: Permission denied
./admin/cvs.sh: 651: --version: not found
*** AUTOCONF NOT FOUND!.
*** KDE requires autoconf 2.53 or newer
make[1]: *** [cvs] Fehler 1
make: *** [all] Fehler 2


I'm sorry, but it's the first time I try to compile an application from source. If there was a debian package available, installing it would be no problem for me.
Comment 14 caulier.gilles 2009-02-24 19:32:08 UTC
Created attachment 31613 [details]
Panasonic LX2 RAW file loaded in digiKam 0.9.5-rc1 using libkdcraw 0.1.8 : thumbnails view
Comment 15 caulier.gilles 2009-02-24 19:36:32 UTC
Created attachment 31614 [details]
Panasonic LX2 RAW file loaded in digiKam 0.9.5-rc1 using libkdcraw 0.1.8 : preview mode
Comment 16 caulier.gilles 2009-02-24 19:38:14 UTC
Created attachment 31615 [details]
Panasonic LX2 RAW file loaded in digiKam 0.9.5-rc1 using libkdcraw 0.1.8 : raw import tool
Comment 17 caulier.gilles 2009-02-24 19:40:44 UTC
Created attachment 31616 [details]
Panasonic LX2 RAW file loaded in digiKam 0.9.5-rc1 using libkdcraw 0.1.8 : image editor
Comment 18 caulier.gilles 2009-02-24 19:46:42 UTC
Created attachment 31617 [details]
Panasonic LX2 RAW file loaded in digiKam 0.11.0-svn using libkdcraw 0.5.0 : thumbnails view and image editor
Comment 19 caulier.gilles 2009-02-24 19:49:16 UTC
woru123,

Using your RAW test image all work fine here with digiKam 0.9.5-rc1 + libkdcraw 0.1.8 based on libraw 0.6.13.

Same with digiKam for KDE4.

So for me, you need to upgrate libkdcraw to current code or wait precompiled package when it will be released (i plan to do it soon)

I close this file now.

Gilles Caulier
Comment 20 woru123 2009-02-24 22:52:20 UTC
(In reply to comment #19)
> woru123,
> 
> Using your RAW test image all work fine here with digiKam 0.9.5-rc1 + libkdcraw
> 0.1.8 based on libraw 0.6.13.
> 
> Same with digiKam for KDE4.
> 
> So for me, you need to upgrate libkdcraw to current code or wait precompiled
> package when it will be released (i plan to do it soon)
> 
> I close this file now.
> 
> Gilles Caulier

Thank you for your answer, Gilles. I'll wait for the precompiled package.

Wolfgang