[Bug 193228] New: Experimental option "write metadata to RAW files" corrupts Nikon NEFs

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] New: Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228

           Summary: Experimental option "write metadata to RAW files"
                    corrupts Nikon NEFs
           Product: digikam
           Version: 0.10.0
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           0.10.0 (using 4.2.2 (KDE 4.2.2), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.28-12-generic

I just tried the experimental option "write metadata to Raw files" and added
iptc tags to a Nikon NEF (from a D70s). In the file tags and other information
already existed which were set by Nikon ViewNX under Windows.

After saving the tags in DigiKam the file was corrupted so that it is
impossible to extract the image data any more. UFRaw only shows a magenta image
and RawTherapee shows a black and white version of the image (with about 4
levels of grey).

The good news: the added keywords can be seen in RawTherapee.

My version of DigiKam: 0.10.0 under Ubuntu 9.04

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=193228


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
          Component|general                     |Metadata




--- Comment #1 from Gilles Caulier <caulier gilles gmail com>  2009-05-19 12:57:47 ---
Christian,

This is fully relevant of Exiv2 library. Check if you use last Exiv2 0.18.1
(see Help Component Info for details)

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from cide@gmx.de
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #2 from Christian Ide <cide gmx de>  2009-05-19 13:03:11 ---
Version 0.18 of libexiv2 is installed.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Gilles Caulier-4
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #3 from Gilles Caulier <caulier gilles gmail com>  2009-05-19 13:07:54 ---
Well, install Exiv2 0.18.1, and you need to recompile libkexiv2 + digiKam
+kipi-plugins. Binary compatibility is not preserved between Exiv2 0.18.0 and
0.18.1. Check in Help/Components info if Exiv2 0.18.1 is used after compilation

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from cide@gmx.de
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #4 from Christian Ide <cide gmx de>  2009-05-19 13:29:48 ---
Sorry, but I can't compile DigiKam at the moment, because I only use an ubuntu
system from USB stick for testing purpose. I can only use the default packages
via apt. I am also away for a few weeks. But afterwards I will install ubuntu
on my laptop persistently and I can do further testing.

I just attach the raw file whith wich I tested the addition of metadata. (Sorry
for the poor picture. I was just testing a new strobe. :-)

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from ahuggel@gmx.net
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #5 from Andreas Huggel <ahuggel gmx net>  2009-05-19 14:24:27 ---
Christian,

Yes, I'd like to look at the image. Can you attach (or send to me at ahuggel at
gmx dot net) one before and after the modification?

Andreas

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from cide@gmx.de
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #6 from Christian Ide <cide gmx de>  2009-05-19 15:35:04 ---
Andreas,

the files are to large for attachement. I'll send the files via email.

Christian

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from ahuggel@gmx.net
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #7 from Andreas Huggel <ahuggel gmx net>  2009-05-20 05:26:11 ---
ok, thanks.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from andi.clemens@gmx.net
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #8 from Andi Clemens <andi clemens gmx net>  2009-05-22 09:33:30 ---
Oh damn, I can confirm this!
Since I tagged my NEFs, they are all broken. I really hope they are not
destroyed forever, because my backup has those tags in it now, too ;-(

Andi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from andi.clemens@gmx.net
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #9 from Andi Clemens <andi clemens gmx net>  2009-05-22 14:07:39 ---
Hmm I don't think this is a problem of metadata writing.
I can not open other NEFs in digiKam's RAW importer, too. They have no metadata
written at all.
In UFRaw they are displayed correctly.

Gilles,
have we changed RAWimport code somehow in the last days?

Andi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from ahuggel@gmx.net
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #10 from Andreas Huggel <ahuggel gmx net>  2009-05-22 15:59:26 ---
Andi,

Did you also edit your images with Nikon ViewNX first?
If not, can you please send me a good sample (before editing it with digiKam)

Thanks,
Andreas
ahuggel at gmx dot net

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from ahuggel@gmx.net
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #11 from Andreas Huggel <ahuggel gmx net>  2009-05-22 16:28:13 ---
It's an exiv2 bug: http://dev.exiv2.org/issues/show/636
Not good. Not good at all.

Andreas

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from andi.clemens@gmx.net
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #12 from Andi Clemens <andi clemens gmx net>  2009-05-23 10:39:31 ---
Hi Andreas,

I just discovered that my problems seems to be something else.
I reinstalled KDE and its libs and used the libkexiv and libkdcraw libraries
that come with KDE 4.2.3.
But unfortunately these libs seem to be broken, because every single RAW file I
tested (NEF, ORF etc) had this strange effect.
Normally I work with the SVN version of these libraries, but I wanted to see if
everything compiles fine when you use the shipped ones.
Sometimes you get user complaints that something is not working, you test it
and can't seem to find anything, because it is already fixed in SVN (or because
the current lib is just not compatible with current digiKam code).
So it is always nice to test features with the "old code", too! :-)

But this seems to be the problem here. Current stable / official libkeviv dcraw
etc seem to have an error that makes importing RAW files impossible in digiKam.

I still use exiv-0.18 and I can not confirm that metadata writing is killing
NEFs, but I will do further testings.

Gilles,

is it possible that the current stable versions of these libraries are broken?
Archlinux is a rolling release distribution, so you normally have all the new
stuff immediately. If Archlinux is broken, chances are that all the other
distributions are broken, too.

These are my components at the moment:

digiKam version 0.11.0-svn
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibExiv2: 0.18
LibJPEG: 62
LibJasper: 1.900.1
LibKDE: 4.2.3 (KDE 4.2.3)
LibKExiv2: 0.6.0
LibKdcraw: 0.5.0
LibLCMS: 118
LibPNG: 1.2.36
LibQt: 4.5.1
LibRaw: 0.7.2
LibTIFF: LIBTIFF, Version 3.8.2 Copyright (c) 1988-1996 Sam Leffler Copyright
(c) 1991-1996 Silicon Graphics, Inc.
Marble widget: 0.7.1
Parallelized demosaicing: Yes
LibGphoto2: 2.4.5
LibKipi: 0.4.0

Andi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from andi.clemens@gmx.net
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #13 from Andi Clemens <andi clemens gmx net>  2009-05-23 10:53:34 ---
Hmm actually I wanted to post the broken setup now, but reinstalling the
default package is not working, I still can import RAW files now.
Maybe some SVN code is left somewhere. I need to remove those files be hand
now.
But this will take some time, don't want to break anything now.

Andi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from ahuggel@gmx.net
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #14 from Andreas Huggel <ahuggel gmx net>  2009-05-23 11:59:23 ---
Andi,

I suggest you report your issue as a different bug once you can reproduce it
again. The issue originally reported here is quite clearly (now at least, after
investigating for half a day) an exiv2/dcraw problem (see the Exiv2 bug I
linked to earlier).

Andreas

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Gilles Caulier-4
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #15 from Gilles Caulier <caulier gilles gmail com>  2009-05-23 23:27:31 ---
Andi,

in RawImport, the only changes are RExpanderBox widget support. Next libkdcraw
will include it and code is hosted to my svn home folder from KDE subversion
repository.

Here 3 computers :

1 with libkdcraw from KDE 4.2.2 and digiKam from trunk => work fine
1 with libkdcraw from KDE 4.2.3 and digiKam from trunk => work fine
1 with libkdcraw from my svn home and digiKam from trunk => work fine

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Bugzilla from andi.clemens@gmx.net
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228





--- Comment #16 from Andi Clemens <andi clemens gmx net>  2009-05-23 23:53:32 ---
Hmm after restarting I can confirm this import error again (looks like only one
channel is displayed).
I now have the libkdcraw from 4.2.3 again, it simply isn't working.

I will checkout exiv2-0.18.1 tomorrow and see if metadata adding will corrupt
my NEFs (after backup of course :-))

Andi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 193228] Experimental option "write metadata to RAW files" corrupts Nikon NEFs

Gilles Caulier-4
In reply to this post by Bugzilla from cide@gmx.de
https://bugs.kde.org/show_bug.cgi?id=193228


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #17 from Gilles Caulier <caulier gilles gmail com>  2009-05-28 13:59:07 ---
Too all,

Andreas as found the solution in Exiv2 bugzilla. Please follow instructions :

http://dev.exiv2.org/issues/show/636

... and use Exiv2 from trunk if you want to play with NEF metadata with
digiKam.

Good news : your NEF picture is not corrupted (:=)))

I close this file now...

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel