[Digikam-devel] [Bug 205776] "Embedded preview loads full image size" does not only do what it says, confusing users
Gilles Caulier
caulier.gilles at gmail.com
Tue Sep 1 11:34:13 BST 2009
https://bugs.kde.org/show_bug.cgi?id=205776
Gilles Caulier <caulier.gilles at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lexa at lexa.ru
--- Comment #14 from Gilles Caulier <caulier gilles gmail com> 2009-09-01 12:34:07 ---
Matti,
Yes, RAW preview image is stored Exif, but in proprietary makernote tags. This
is not a standardized place.
2 way can be done to extrcat preview :
1/ libraw, as you can see with dcraw command line tool
2/ exiv2, but you need to parse file type to get right makernote tag.
Way 1/ is the most simple to do because libraw will analyze Raw format for you
automatically. This is the current way used in digiKam ,thrue libkdcraw
interface :
http://websvn.kde.org/trunk/KDE/kdegraphics/libs/libkdcraw/
You will find last libraw code here...
Currently, libkdcraw extract preview to emulate dcraw -e option :
http://lxr.kde.org/source/KDE/kdegraphics/libs/libkdcraw/libkdcraw/kdcraw.cpp#99
But i'm not sure if libraw API is able to select a specific preview image if
more that one is available. Perhaps Alex can guide us here...
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.
More information about the Digikam-devel
mailing list