[Digikam-devel] [Bug 220545] Cannot write XMP sidecar files

Jakob Malm jakob.malm at gmail.com
Thu Apr 1 15:59:08 BST 2010


https://bugs.kde.org/show_bug.cgi?id=220545





--- Comment #14 from Jakob Malm <jakob malm gmail com>  2010-04-01 16:59:05 ---
(In reply to comment #11)
> about XMP sidecar support, see below my proposal :
> 
> 1/ read XMP sidecar : 
>  - must be used when metadata must be imported to database (scan at startup for
> ex.).
>  - in first image metadata must be check, including makernotes. if nothing is
> find, XMP sidecar is the alternative.

My opinion on this is that tags present in an associated XMP sidecar file
should take precedence over the tags found in the image. In any case, an
existing sidecar file would need to be read even if there is metadata in the
image/video file itself, because it may contain other tags than what's found in
the image/video.

>  - this include all file format as images and video files.
> 
> 2/ Write XMP sidecar :
>  - must be used to sync image metadata with database contents.
>  - in first metadata must be written in image file. If image format is read
> only or not supported by Exiv2, XMP sidecar must be created. This is the case
> of RAW files or video files for ex.

I think this should be set in preferences. I would rather _not_ write to the
image, even if it is writable, but rather use the XMP sidecar.

> 
> To manage these rules, 2 implementation must be fixed :
> 
> 1/ libkexiv2, especially read and write method.
> 2/ digiKam MetadataHub which is the core metadata management from digiKam.
> 3/ digiKam metadata settings pannel where option must be added to play with XMP
> sidecar.
> 
> links to code :
> 
> 1/ =>
> http://websvn.kde.org/trunk/KDE/kdegraphics/libs/libkexiv2/libkexiv2/kexiv2.cpp?revision=1070289&view=markup
> 2/ =>
> http://websvn.kde.org/trunk/extragear/graphics/digikam/digikam/metadatahub.cpp?revision=1050241&view=markup
> 3/ =>
> http://websvn.kde.org/trunk/extragear/graphics/digikam/utilities/setup/setupmetadata.cpp?revision=1075046&view=markup
> 
> Important : only libkexiv2 and digiKam from trunk must be fixed in this way.

Can I use 1.2.0 as a base, though?

> 
> Marcel, i forget something there ?
> 
> Gilles Caulier

Jakob Malm

-- 
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