Bug 255137 - Some exif metadata are lost when converting CR2 to DNG
Summary: Some exif metadata are lost when converting CR2 to DNG
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Bqm-DngConverter (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-24 20:36 UTC by Dahaniel
Modified: 2016-07-07 13:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.0
Sentry Crash Report:


Attachments
metadata of the 3 files (10.36 KB, application/zip)
2010-10-24 23:00 UTC, Dahaniel
Details
exifdata of a cr2 and the corresponding dng (8.14 KB, application/zip)
2012-08-21 05:57 UTC, Dahaniel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dahaniel 2010-10-24 20:36:52 UTC
Version:           1.5.0
OS:                Linux

I converted CR2 files to dng and found for example the lense data missing, which is bad because automatic lense correction tools won't work.
I also converted the file with adobes converter, the resulting dng has the lense data, however it does not show up in darktable so it seems not to be in the field where it is in the CR2.
Some makernotes fields of the Kipi-created dng also look messed up:


Dateiname: IMG_3172.dng (Herstellerbemerkungen in Exif-Informationen)

>>> Canon <<<

Firmware Version : f:li> <rdf:li>8</rd
Focal Length : 26214 21306 28001 27760
Image Type : <rdf:li>8</r
ModelID : (2147484022)
Owner Name : f:li> </rdf:Seq> </tiff:B
Serial Number : 259102726


I attached the original CR2 and the two DNGs.



Reproducible: Always
Comment 1 caulier.gilles 2010-10-24 22:01:48 UTC
Lens info are normally registered in Canon makernotes.

Makernotes are saved in DNG files. Which Exiv2 library version you use exactly ?

Can you parse all metadata from CR2 and DNG with Exiftool to see the difference.

Thanks in advance

Gilles Caulier
Comment 2 Dahaniel 2010-10-24 23:00:57 UTC
Created attachment 52836 [details]
metadata of the 3 files
Comment 3 Dahaniel 2010-10-24 23:01:35 UTC
exiv2 is 0.19-1,
Metadata from Exiftool is attached.
Comment 4 Jens Mueller 2010-10-26 22:58:39 UTC
SVN commit 1190071 by jmueller:

update todo

CCBUGS: 255137

 M  +12 -1     TODO  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1190071
Comment 5 Jens Mueller 2010-11-06 16:09:53 UTC
SVN commit 1193625 by jmueller:

adjust some canon lens tags
do not store makernotes directly for canon

CCBUGS: 255137

 M  +57 -2     dngwriter.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1193625
Comment 6 Jens Mueller 2010-11-07 18:08:35 UTC
SVN commit 1193951 by jmueller:

store makernotes in DngPrivateData field

BUGS: 255137

 M  +2 -1      NEWS  
 M  +1 -2      dngconverter/TODO  
 M  +24 -13    dngconverter/dngwriter/dngwriter.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1193951
Comment 7 Dahaniel 2012-08-21 05:57:58 UTC
Created attachment 73340 [details]
exifdata of a cr2 and the corresponding dng
Comment 8 Dahaniel 2012-08-21 05:58:34 UTC
Just recognized that the I have the problem again, EOS7D CR2s converted to DNG with DigiKam/Kipi 2.8.0 don't show lens info metadata in Darktable 1.0.5.

While I see the Info in the Exiv Data (see attached files)  at least some fields are messed up. Here an example:

DNG:
  Field Of View                   : 9.2 deg
  Focal Length                    : 35.0 mm (35 mm equivalent: 222.8 mm)
  Hyperfocal Distance             : 46.34 m
  Lens                            : 18.0 - 55.0 mm (35 mm equivalent: 114.6 - 350.1 mm)

CR2:
  Field Of View                   : 36.3 deg
  Focal Length                    : 35.0 mm (35 mm equivalent: 55.0 mm)
  Hyperfocal Distance             : 11.43 m
  Lens                            : 18.0 - 55.0 mm (35 mm equivalent: 28.3 - 86.4 mm)
Comment 9 Sander van der Heijden 2014-07-12 14:30:16 UTC
Using DigiKam 4.1.0/Kipi plugins 4.1.0 I have the same issue, not for all CR2 images, but for about 3 out of 100 CR2 images the DNG does not contain the right metadata, furthermore these DNG images are then also not shown when filtering on either RAW or DNG images. When retrying with a subset of images, each time the same DNG images will be corrupt.  I will add an example CR2, DNG and xmp file as attachment.
Comment 10 Sander van der Heijden 2014-07-12 14:39:43 UTC
Attachments to large, images can be downloaded from 
https://drive.google.com/folderview?id=0B0uPI0_kOOJXVTNWRXItVjNHZm8&usp=sharing

It seems that exiv data is present, but file size info, and some other data is not...
Comment 11 caulier.gilles 2015-05-18 10:45:35 UTC
Sander,

This file still valid using last kipi-plugins 4.10.0 ?

Gilles Caulier
Comment 12 Sander van der Heijden 2015-06-05 14:38:19 UTC
Gilles,

This file is probably related to Bug 338842

Sander
Comment 13 caulier.gilles 2015-06-05 14:53:13 UTC
*** Bug 338842 has been marked as a duplicate of this bug. ***
Comment 14 caulier.gilles 2015-06-25 09:00:56 UTC
New kipi-plugins 4.11.0 is available :

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?
Comment 15 caulier.gilles 2016-07-07 13:21:46 UTC
This problem is not reproducible with last 5.0.0
I close this file now. Re-open it if necessary.
Gilles Caulier