Bug 263726

Summary: metadata lost when decoding a raw file
Product: [Applications] digikam Reporter: Robert Zeller <robert.zeller>
Component: Plugin-RawImport-NativeAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: caulier.gilles
Priority: NOR    
Version: 1.7.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 1.8.0

Description Robert Zeller 2011-01-20 11:13:42 UTC
Version:           1.7.0 (using KDE 4.4.4) 
OS:                Linux

When decoding a raw file in certain cases the metadata of the raw file are lost. The default settings for Camera Profile in the raw import window is "None". In this case all metadata get wiped out. After explicitely setting "Camera Profile" to "Embedded" metadata is preserved for just one file that is decoded. For the next raw file metadata is lost again, unless one uses the "Use Default" button or one sets "Camera Profile" again to "Embedded". Metadata should be preserved in any case !

Reproducible: Always
Comment 1 caulier.gilles 2011-01-20 11:19:38 UTC
SVN commit 1215912 by cgilles:

use right DimgImageFilter constructor to not lost metadata in editor when use press Import button in Raw Import tool


 M  +4 -2      rawpostprocessing.cpp
 M  +1 -1      rawpostprocessing.h
 M  +1 -1      rawpreview.cpp
 M  +1 -1      rawpreview.h
 M  +1 -1      rawsettingsbox.cpp
 M  +1 -1      rawsettingsbox.h


--- trunk/extragear/graphics/digikam/utilities/imageeditor/rawimport/rawpostprocessing.cpp #1215911:1215912
@@ -6,7 +6,7 @@
 * Date        : 2008-13-08
 * Description : Raw post processing corrections.
 *
- * Copyright (C) 2008-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright (C) 2008-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
 *
 * This program is free software; you can redistribute it
 * and/or modify it under the terms of the GNU General
@@ -40,8 +40,10 @@
 {

 RawPostProcessing::RawPostProcessing(DImg* orgImage, QObject* parent, const DRawDecoding& settings)
-    : DImgThreadedFilter(orgImage, parent, "RawPostProcessing")
+    : DImgThreadedFilter(parent)
 {
+    setFilterName("RawPostProcessing");
+    setOriginalImage(*orgImage);
    m_customRawSettings = settings;
    initFilter();
 }
--- trunk/extragear/graphics/digikam/utilities/imageeditor/rawimport/rawpostprocessing.h #1215911:1215912
@@ -6,7 +6,7 @@
 * Date        : 2008-13-08
 * Description : Raw post processing corrections.
 *
- * Copyright (C) 2008-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright (C) 2008-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
 *
 * This program is free software; you can redistribute it
 * and/or modify it under the terms of the GNU General
--- trunk/extragear/graphics/digikam/utilities/imageeditor/rawimport/rawpreview.cpp #1215911:1215912
@@ -6,7 +6,7 @@
 * Date        : 2008-08-04
 * Description : RAW postProcessedImg widget.
 *
- * Copyright (C) 2008-2010 Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright (C) 2008-2011 Gilles Caulier <caulier dot gilles at gmail dot com>
 *
 * This program is free software; you can redistribute it
 * and/or modify it under the terms of the GNU General
--- trunk/extragear/graphics/digikam/utilities/imageeditor/rawimport/rawpreview.h #1215911:1215912
@@ -6,7 +6,7 @@
 * Date        : 2008-08-04
 * Description : RAW preview widget.
 *
- * Copyright (C) 2008-2010 Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright (C) 2008-2011 Gilles Caulier <caulier dot gilles at gmail dot com>
 *
 * This program is free software; you can redistribute it
 * and/or modify it under the terms of the GNU General
--- trunk/extragear/graphics/digikam/utilities/imageeditor/rawimport/rawsettingsbox.cpp #1215911:1215912
@@ -6,7 +6,7 @@
 * Date        : 2008-08-11
 * Description : Raw import settings box
 *
- * Copyright (C) 2008-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright (C) 2008-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
 *
 * This program is free software; you can redistribute it
 * and/or modify it under the terms of the GNU General
--- trunk/extragear/graphics/digikam/utilities/imageeditor/rawimport/rawsettingsbox.h #1215911:1215912
@@ -6,7 +6,7 @@
 * Date        : 2008-08-11
 * Description : Raw import settings box
 *
- * Copyright (C) 2008-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright (C) 2008-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
 *
 * This program is free software; you can redistribute it
 * and/or modify it under the terms of the GNU General