Bug 320039 - EXIF will be lost if user tries to convert DNG to JPEG
Summary: EXIF will be lost if user tries to convert DNG to JPEG
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Raw (show other bugs)
Version: 3.3.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-20 07:40 UTC by Dmitry
Modified: 2021-05-07 04:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.3.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2013-05-20 07:40:33 UTC
Hello!

If I try to edit imported DNG, import it  into image editor and then save new version as JPEG, all metadata will be lost. But If I try to save in JPEG2000 then all metada will be preserved.

Thank you.

Reproducible: Always

Steps to Reproduce:
1. Import some DNG image containing some metadata
2. Right click on DNG image and choose "edit.." (F4)
3. Click "import" button to import image into image editor
4. Save in format JPEG or JPEG2000.
Actual Results:  
If user saves in JPEG then metadata will be lost. If user save in JPEG2000 then the metadata is preserved.

Expected Results:  
Preserved metadata
Comment 1 Dmitry 2013-05-20 08:06:31 UTC
The same problem with PNG
Comment 2 caulier.gilles 2014-09-04 21:20:01 UTC
Dmitry,

Problem still reproducible using last digiKam 4.2.0 ?

Gilles Caulier
Comment 3 caulier.gilles 2016-07-06 19:53:51 UTC
This file still valid using last digiKam 5.0.0 ?

Gilles Caulier
Comment 4 caulier.gilles 2016-11-25 14:39:55 UTC
What's about this file using digiKam AppImage bundle 5.4.0 pre release given at this url :

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM

Gilles Caulier
Comment 5 caulier.gilles 2020-08-03 04:52:10 UTC
digiKam 7.0.0 stable release is now published:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Best Regards

Gilles Caulier
Comment 6 caulier.gilles 2020-12-28 10:34:32 UTC
Git commit 86f907da7edaa01bbb519ddd1da871ac65b773f6 by Gilles Caulier.
Committed on 28/12/2020 at 10:32.
Pushed by cgilles into branch 'master'.

Update internal Libraw to last 0.20.2 to imporve metadata extraction from Exif and Xmp
https://www.libraw.org/news/libraw-0-20-2-Release
Related: bug 426923, bug 403267

M  +1    -0    NEWS
M  +39   -0    core/libs/rawengine/libraw/Changelog.txt
M  +3    -3    core/libs/rawengine/libraw/libraw/libraw_types.h
M  +1    -1    core/libs/rawengine/libraw/libraw/libraw_version.h
M  +12   -2    core/libs/rawengine/libraw/samples/dcraw_emu.cpp
M  +1    -1    core/libs/rawengine/libraw/samples/raw-identify.cpp
M  +7    -2    core/libs/rawengine/libraw/src/decoders/kodak_decoders.cpp
M  +2    -1    core/libs/rawengine/libraw/src/decoders/unpack_thumb.cpp
M  +5    -2    core/libs/rawengine/libraw/src/libraw_datastream.cpp
M  +1    -1    core/libs/rawengine/libraw/src/metadata/identify.cpp
M  +2    -1    core/libs/rawengine/libraw/src/metadata/makernotes.cpp
M  +34   -32   core/libs/rawengine/libraw/src/preprocessing/raw2image.cpp

https://invent.kde.org/graphics/digikam/commit/86f907da7edaa01bbb519ddd1da871ac65b773f6
Comment 7 caulier.gilles 2021-05-07 04:30:31 UTC
Problem not reproducible with digiKam 7.3.0 and Exiv2 0.27.4

https://i.imgur.com/X3dXjaq.png

Original DNG files taken from :

https://www.photographyblog.com/previews/honor_view20_photos

Gilles Caulier