[Digikam-users] Tags not written to XMP sidecar?

Anders Kamf digikam at kamf.se
Sun May 22 21:36:18 BST 2016


Hi!

Since I don't find the data in the .xmp with niether exiv2 nor exiftool, it
seems like a problem to write. The .cmp is created by digikam though, so it
writes something. But not the tags which it writes to a jpg-file as it
seems. It can of course also be that those two programs cannot extract that
specific data, but even if so digikam should be able to.

Regarding reading metadata it is the same for jpg as for xmp, digikam
doesn't re-read metadata of a file in that is present in its database
unless manually told to. It won’t automatically recognize that a file is
updated outside digikam.
(Also, when triggered to re-read digikam appends the metadata of the file
to the metadata already in the database, i.e. it is not possible to delete
a tag outside digikam and expect it to disappear when re-reading the
metadata. As designed.)


BR
Anders

2016-05-22 17:34 GMT+02:00 Martin (KDE) <kde at fahrendorf.de>:

> Hallo
>
> So is it a problem in writing the xmp file or reading from them on the
> new location?
>
> I have simmilar problems. Digikam writes xmp files quite fine, but never
> reads from xmp automatically if they are changed by another program
> (like darktable). I have to sellect the album/file and hit reread
> metadata from external file to get it working.
>
> I hope this will be fixed in upcomming digikam 5.
>
> Regards
> Martin
>
>
> Am 22.05.2016 um 17:01 schrieb Anders Kamf:
> > Hi,
> >
> > Thanks for your reply Tobias! I'm afraid it doesn't solve the problem or
> > answers the questions though.
> >
> > I indeed write meta data to JPG files, including tags, have done so
> > since 2009 and it works very well. Sidecar files are created by digikam
> > for files it cannot write meta data into, e.g. video files, the settings
> > was described in my initial post. It is from those Filename.mp4.xmp or
> > Filename.mov.xmp I have tried with both exiv2 and exiftool to extract
> > the tags.
> >
> > I'm moving files from my laptop to my server once I have done tagging
> > etc (laptop is used because I travel a lot). I usually use rsync, i.e.
> > the move is done outside digikam. The photo collection on my servers is
> > accessed with "another" digikam from a desktop PC (Windows) and from a
> > stand alone Ubuntu (both with setting "Read from sidecar files)". Both
> > have their own digikam database, hence all the meta data needs to travel
> > with the files.
> >
> > The main question, I'd guess, is whether to expect that the meta data of
> > the xmp file corresponds to the one of the jpg file in terms of tags,
> > rating etc.?
> >
> > Regards
> > Anders
> >
> >
> > 2016-05-22 15:31 GMT+02:00 Tobias Margiani <margianit at gmail.com
> > <mailto:margianit at gmail.com>>:
> >
> >     Hi,
> >
> >     I'm not sure if I understand your problem correctly. Are XMP files
> >     created but
> >     without (the right) content or are there no XMP files at all (you
> >     could check
> >     that with a file manager)?
> >     I don't use XMP files normally so there might be people who know all
> >     this
> >     better but from a few quick tests it looks like exiftool only reads
> >     xmp files
> >     if you pass them as argument directly and not if you try to read
> >     tags from an
> >     image file (e.g. if you have image.jpg and image.xmp you have to use
> >     "exiftool
> >     image.xmp" to read the tags). In my checks there is a "Tags List"
> entry
> >     showing the digikam tags.
> >     To comment on you problem when moving the files. If you only moved
> >     image files
> >     the metadata might indeed be lost but if you have moved the whole
> >     folder the
> >     xmp files could still be there! So check with a file manager. That
> >     the tags
> >     aren't read by digikam may result from your configuration. Are you
> >     sure that
> >     you've configured digikam to read metadata from sidecar files.
> >     Another source of this problem may be that you haven't configured
> >     digikam to
> >     write Tags into file at all. You can check in the metadata tab what
> >     information
> >     is written to the files.
> >
> >     I hope some of this could help.
> >     Regards
> >     Tobias
> >
> >     Am Samstag, 21. Mai 2016, 10:12:13 CEST schrieb Anders Kamf:
> >     > Hi!
> >     >
> >     > I have the setting "Write to sidecar files": "Write to XMP sidecar
> >     file for
> >     > read-only image only", which creates xmp sidecar files for the
> >     movie files
> >     > that are in my collection.
> >     > Now, I thought that this would mean that the tags applied to those
> >     movies
> >     > was written to the XMP sidecar file. But that seems not to be the
> >     case! I
> >     > now realise that at least neither exiv2 nor exiftool finds those
> tags.
> >     > Also, when I access the file from "another" digikam on another
> >     computer, no
> >     > metadata seems to be found.
> >     >
> >     > If this is true, it means that all metadata for those files have
> >     been lost
> >     > when I have moved the files outside Digikam (to another server),
> which
> >     > truly is a sad awakening.
> >     >
> >     > Is this the intended behaviour, or is it a bug? Or am I doing
> >     something
> >     > wrong (a user-fault...)?
> >     >
> >     > I'm using digikam 4.14.10 on Ubuntu 15.10.
> >     >
> >     > Best regards
> >     > Anders
> >
> >
> >     _______________________________________________
> >     Digikam-users mailing list
> >     Digikam-users at kde.org <mailto:Digikam-users at kde.org>
> >     https://mail.kde.org/mailman/listinfo/digikam-users
> >
> >
> >
> >
> > _______________________________________________
> > Digikam-users mailing list
> > Digikam-users at kde.org
> > https://mail.kde.org/mailman/listinfo/digikam-users
> >
>
> _______________________________________________
> Digikam-users mailing list
> Digikam-users at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20160522/252f8163/attachment.html>


More information about the Digikam-users mailing list