How do I save "DateTime imported" value in Digikam?

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How do I save "DateTime imported" value in Digikam?

Jens Benecke-2
Hi,

I have roughly 48’000 photos which I am converting from iPhoto. (see github -> jensb/iphoto2xmp)

iPhoto saves a timestamp called „Datetime Imported“ in addition to „Date taken“ and „Date last modified“.
It’s not the „DateTimeDigitized“ flag known from EXIF, this is the date the photo was imported into iPhoto.

I would like to preserve this flag during my Digikam conversion.
What XMP flag would be most suitable for this purpose?

Thanks!

--
Jens Benecke - [hidden email]
Keine Lust auf Müll in ihrem Postfach? www.spamfreemail.de
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

Gilles Caulier-4
Hi,

There is no tags into digiKam corresponding to this kind of date in database.

Gilles Caulier

2017-05-18 20:25 GMT+02:00 Jens Benecke <[hidden email]>:

> Hi,
>
> I have roughly 48’000 photos which I am converting from iPhoto. (see github -> jensb/iphoto2xmp)
>
> iPhoto saves a timestamp called „Datetime Imported“ in addition to „Date taken“ and „Date last modified“.
> It’s not the „DateTimeDigitized“ flag known from EXIF, this is the date the photo was imported into iPhoto.
>
> I would like to preserve this flag during my Digikam conversion.
> What XMP flag would be most suitable for this purpose?
>
> Thanks!
>
> --
> Jens Benecke - [hidden email]
> Keine Lust auf Müll in ihrem Postfach? www.spamfreemail.de
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

Jens Benecke-2
hi,

wow - that was a quick reply. :)
I dug a little further and found out that Adobe (XMP creator) defines the following:

DateTime = date the photo was added to the catalogue
DateTimeOriginal = date the photo was taken
DateTimeModified = date the photo was last modified

In the XMP files created by Digikam I see

xmp:CreateDate
xmp:ModifyDate

which would correspond to #2 and #3 above.

Is this correct? Does Digikam handle it this way? What would the correct tag for #1 (DateTime) be?

--
Jens Benecke - [hidden email]
Keine Lust auf Müll in ihrem Postfach? www.spamfreemail.de



> Am 18.05.2017 um 23:14 schrieb Gilles Caulier <[hidden email]>:
>
> Hi,
>
> There is no tags into digiKam corresponding to this kind of date in database.
>
> Gilles Caulier
>
> 2017-05-18 20:25 GMT+02:00 Jens Benecke <[hidden email]>:
>> Hi,
>>
>> I have roughly 48’000 photos which I am converting from iPhoto. (see github -> jensb/iphoto2xmp)
>>
>> iPhoto saves a timestamp called „Datetime Imported“ in addition to „Date taken“ and „Date last modified“.
>> It’s not the „DateTimeDigitized“ flag known from EXIF, this is the date the photo was imported into iPhoto.
>>
>> I would like to preserve this flag during my Digikam conversion.
>> What XMP flag would be most suitable for this purpose?
>>
>> Thanks!
>>
>> --
>> Jens Benecke - [hidden email]
>> Keine Lust auf Müll in ihrem Postfach? www.spamfreemail.de

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

AndriusWild
In reply to this post by Jens Benecke-2
How about 

exiftool -xmp:dateTimeOriginal="2005:10:23 20:06:34.33-05:00" a.jpg

When writing XMP or other information types which allow incomplete date/time values, the following input formats are also accepted:

YYYY
YYYY:mm
YYYY:mm:dd
YYYY:mm:dd HH:MM



Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Jens Benecke <[hidden email]>
Date: 2017-05-18 3:40 PM (GMT-07:00)
To: digiKam - Home Manage your photographs as a professional with the power of open source <[hidden email]>
Subject: Re: How do I save "DateTime imported" value in Digikam?

hi,

wow - that was a quick reply. :)
I dug a little further and found out that Adobe (XMP creator) defines the following:

DateTime = date the photo was added to the catalogue
DateTimeOriginal = date the photo was taken
DateTimeModified = date the photo was last modified

In the XMP files created by Digikam I see

xmp:CreateDate
xmp:ModifyDate

which would correspond to #2 and #3 above.

Is this correct? Does Digikam handle it this way? What would the correct tag for #1 (DateTime) be?

--
Jens Benecke - [hidden email]
Keine Lust auf Müll in ihrem Postfach? www.spamfreemail.de



> Am 18.05.2017 um 23:14 schrieb Gilles Caulier <[hidden email]>:
>
> Hi,
>
> There is no tags into digiKam corresponding to this kind of date in database.
>
> Gilles Caulier
>
> 2017-05-18 20:25 GMT+02:00 Jens Benecke <[hidden email]>:
>> Hi,
>>
>> I have roughly 48’000 photos which I am converting from iPhoto. (see github -> jensb/iphoto2xmp)
>>
>> iPhoto saves a timestamp called „Datetime Imported“ in addition to „Date taken“ and „Date last modified“.
>> It’s not the „DateTimeDigitized“ flag known from EXIF, this is the date the photo was imported into iPhoto.
>>
>> I would like to preserve this flag during my Digikam conversion.
>> What XMP flag would be most suitable for this purpose?
>>
>> Thanks!
>>
>> --
>> Jens Benecke - [hidden email]
>> Keine Lust auf Müll in ihrem Postfach? www.spamfreemail.de

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

Mica Semrick
In reply to this post by Jens Benecke-2
XMP is extensible as well, so you could have something like <iPhoto:datetimeimport> tag

-m

On May 18, 2017 11:25:24 AM PDT, Jens Benecke <[hidden email]> wrote:
Hi,

I have roughly 48’000 photos which I am converting from iPhoto. (see github -> jensb/iphoto2xmp)

iPhoto saves a timestamp called „Datetime Imported“ in addition to „Date taken“ and „Date last modified“.
It’s not the „DateTimeDigitized“ flag known from EXIF, this is the date the photo was imported into iPhoto.

I would like to preserve this flag during my Digikam conversion.
What XMP flag would be most suitable for this purpose?

Thanks!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

AndriusWild
In reply to this post by Jens Benecke-2
I thought digikam can read any tag from metadata. There is a section in settings to customize what tags to read /write, isn't it?



Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Mica Semrick <[hidden email]>
Date: 2017-05-18 3:50 PM (GMT-07:00)
To: digiKam - Home Manage your photographs as a professional with the power of open source <[hidden email]>
Subject: Re: How do I save "DateTime imported" value in Digikam?

XMP is extensible as well, so you could have something like <iPhoto:datetimeimport> tag

-m

On May 18, 2017 11:25:24 AM PDT, Jens Benecke <[hidden email]> wrote:
Hi,

I have roughly 48’000 photos which I am converting from iPhoto. (see github -> jensb/iphoto2xmp)

iPhoto saves a timestamp called „Datetime Imported“ in addition to „Date taken“ and „Date last modified“.
It’s not the „DateTimeDigitized“ flag known from EXIF, this is the date the photo was imported into iPhoto.

I would like to preserve this flag during my Digikam conversion.
What XMP flag would be most suitable for this purpose?

Thanks!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

Remco Viëtor
On jeudi 18 mai 2017 23:53:57 CEST Andrey Goreev wrote:
> I thought digikam can read any tag from metadata. There is a section in
> settings to customize what tags to read /write, isn't it?
>
But it still has to know which tag to read, and what the tag means.
One property of XML (of which XMP is a derivative) is that a program should be
able to parse any valid file, /ignoring/ tags  or attributes it doesn't know
about. But such unknown tags may get lost on rewriting the file.

So you can add an <iphone:DataTimeImport> tag to the XMP, but, since Digikam
probably doesn't know about the tag, it will silently ignore it. On a rewrite
of the XMP (say because you added a keyword, or changed the title), that
<iphone:DataTimeImport> tag may very well be lost. And of course, Digikam
won't do anything with it (no searching, no ordering according to import date,
etc.)

Remco

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

Gilles Caulier-4
2017-05-19 7:48 GMT+02:00 Remco Viëtor <[hidden email]>:

> On jeudi 18 mai 2017 23:53:57 CEST Andrey Goreev wrote:
>> I thought digikam can read any tag from metadata. There is a section in
>> settings to customize what tags to read /write, isn't it?
>>
> But it still has to know which tag to read, and what the tag means.
> One property of XML (of which XMP is a derivative) is that a program should be
> able to parse any valid file, /ignoring/ tags  or attributes it doesn't know
> about. But such unknown tags may get lost on rewriting the file.
>
> So you can add an <iphone:DataTimeImport> tag to the XMP, but, since Digikam
> probably doesn't know about the tag, it will silently ignore it.

Absolutly...

Gilles Caulier
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

jdd@dodin.org
In reply to this post by Remco Viëtor
Le 19/05/2017 à 07:48, Remco Viëtor a écrit :

> about. But such unknown tags may get lost on rewriting the file.
>

really? this is pretty odd.

some tag may be replaced though (editor's name, for example)

jdd
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

Mica Semrick
I would consider it very bad behavior to remove or ovverwritw ever element in the XMP file. I certainly hope digikam does not have this behavior.

-m

On May 18, 2017 11:16:56 PM PDT, "[hidden email]" <[hidden email]> wrote:
Le 19/05/2017 à 07:48, Remco Viëtor a écrit :

about. But such unknown tags may get lost on rewriting the file.


really? this is pretty odd.

some tag may be replaced though (editor's name, for example)

jdd
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

Gilles Caulier-4
no DK do not touch unknown or un-managed tags.

But don't forget Exiv2 is used at end in background. Something
unwanted can be done in this area, but as i know nothing is removed
intentionally by Exiv2 at metadata rewriting stage.

Gilles Caulier

2017-05-19 8:29 GMT+02:00 Mica Semrick <[hidden email]>:

> I would consider it very bad behavior to remove or ovverwritw ever element
> in the XMP file. I certainly hope digikam does not have this behavior.
>
> -m
>
>
> On May 18, 2017 11:16:56 PM PDT, "[hidden email]" <[hidden email]> wrote:
>>
>> Le 19/05/2017 à 07:48, Remco Viëtor a écrit :
>>
>>>  about. But such unknown tags may get lost on rewriting the file.
>>>
>>
>>
>> really? this is pretty odd.
>>
>> some tag may be replaced though (editor's name, for example)
>>
>> jdd
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

Jürgen Blumenschein
In reply to this post by Mica Semrick
Me too, digikam should at least preserve any valid tag
even if this special tag isn't used within digikam.

Jürgen

PS: What's the need for that tag, Jens is talking about?
     Perhaps it can be integrated to the filename on import to digikam or
     just after importing. In the renaming dialog there's an option to
     read special tags.

Zitat von Mica Semrick <[hidden email]>:

> I would consider it very bad behavior to remove or ovverwritw ever  
> element in the XMP file. I certainly hope digikam does not have this  
> behavior.
>
> -m
>
> On May 18, 2017 11:16:56 PM PDT, "[hidden email]" <[hidden email]> wrote:
>> Le 19/05/2017 à 07:48, Remco Viëtor a écrit :
>>
>>> about. But such unknown tags may get lost on rewriting the file.
>>>
>>
>> really? this is pretty odd.
>>
>> some tag may be replaced though (editor's name, for example)
>>
>> jdd



--
Jürgen Blumenschein, eMail: [hidden email]
Homepage: http://members.dokom.net/blumenschein
Am Quartus 17
D-44149 Dortmund
Tel.: +49 231 7217321, Handy: +49 176 5591 4562
public key:  
http://members.dokom.net/blumenscheinJuergen_Blumenschein_(0xC9358EBB)_public_key.asc

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

AndriusWild
In reply to this post by Jens Benecke-2
I still have xmp info written into my files by Picasa and WLPG. Can't get rid of it. I wish digiKam has been deleting an unrecognized info from xmp-metadata. LOL



Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Gilles Caulier <[hidden email]>
Date: 2017-05-19 12:37 AM (GMT-07:00)
To: digiKam - Home Manage your photographs as a professional with the power of open source <[hidden email]>
Subject: Re: How do I save "DateTime imported" value in Digikam?

no DK do not touch unknown or un-managed tags.

But don't forget Exiv2 is used at end in background. Something
unwanted can be done in this area, but as i know nothing is removed
intentionally by Exiv2 at metadata rewriting stage.

Gilles Caulier

2017-05-19 8:29 GMT+02:00 Mica Semrick <[hidden email]>:

> I would consider it very bad behavior to remove or ovverwritw ever element
> in the XMP file. I certainly hope digikam does not have this behavior.
>
> -m
>
>
> On May 18, 2017 11:16:56 PM PDT, "[hidden email]" <[hidden email]> wrote:
>>
>> Le 19/05/2017 à 07:48, Remco Viëtor a écrit :
>>
>>>  about. But such unknown tags may get lost on rewriting the file.
>>>
>>
>>
>> really? this is pretty odd.
>>
>> some tag may be replaced though (editor's name, for example)
>>
>> jdd
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

Remco Viëtor
In reply to this post by Gilles Caulier-4
On vendredi 19 mai 2017 08:37:14 CEST Gilles Caulier wrote:

> no DK do not touch unknown or un-managed tags.
>
> But don't forget Exiv2 is used at end in background. Something
> unwanted can be done in this area, but as i know nothing is removed
> intentionally by Exiv2 at metadata rewriting stage.
>
> Gilles Caulier
>
> 2017-05-19 8:29 GMT+02:00 Mica Semrick <[hidden email]>:
> > I would consider it very bad behavior to remove or ovverwritw ever element
> > in the XMP file. I certainly hope digikam does not have this behavior.
> >
> > -m
> >
> > On May 18, 2017 11:16:56 PM PDT, "[hidden email]" <[hidden email]> wrote:
> >> Le 19/05/2017 à 07:48, Remco Viëtor a écrit :
> >>>  about. But such unknown tags may get lost on rewriting the file.
> >>
> >> really? this is pretty odd.
> >>
> >> some tag may be replaced though (editor's name, for example)
> >>
> >> jdd

Good to know (I suspected as much as Darktable's tags survive intact), but
afaik, XML doesn't /require/ a program to preserve unknown tags.



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

Simon Frei
In reply to this post by AndriusWild
That's (hopefully) never going to happen (at least not automatically). This would be a night-mare for anyone using more than one program (so virtually everyone).

On 19/05/17 14:10, Andrey Goreev wrote:
I still have xmp info written into my files by Picasa and WLPG. Can't get rid of it. I wish digiKam has been deleting an unrecognized info from xmp-metadata. LOL



Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Gilles Caulier [hidden email]
Date: 2017-05-19 12:37 AM (GMT-07:00)
To: digiKam - Home Manage your photographs as a professional with the power of open source [hidden email]
Subject: Re: How do I save "DateTime imported" value in Digikam?

no DK do not touch unknown or un-managed tags.

But don't forget Exiv2 is used at end in background. Something
unwanted can be done in this area, but as i know nothing is removed
intentionally by Exiv2 at metadata rewriting stage.

Gilles Caulier

2017-05-19 8:29 GMT+02:00 Mica Semrick [hidden email]:
> I would consider it very bad behavior to remove or ovverwritw ever element
> in the XMP file. I certainly hope digikam does not have this behavior.
>
> -m
>
>
> On May 18, 2017 11:16:56 PM PDT, [hidden email] [hidden email] wrote:
>>
>> Le 19/05/2017 à 07:48, Remco Viëtor a écrit :
>>
>>>  about. But such unknown tags may get lost on rewriting the file.
>>>
>>
>>
>> really? this is pretty odd.
>>
>> some tag may be replaced though (editor's name, for example)
>>
>> jdd

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

Mica Semrick
In reply to this post by AndriusWild
digiKam can get rid of it, but it can be removed pretty easily.

If you send an example XMP file and tell me which elements you'd like to remove, I can write an XSLT that'll remove them.

On May 19, 2017 5:10:34 AM PDT, Andrey Goreev <[hidden email]> wrote:
I still have xmp info written into my files by Picasa and WLPG. Can't get rid of it. I wish digiKam has been deleting an unrecognized info from xmp-metadata. LOL



Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Gilles Caulier <[hidden email]>
Date: 2017-05-19 12:37 AM (GMT-07:00)
To: digiKam - Home Manage your photographs as a professional with the power of open source <[hidden email]>
Subject: Re: How do I save "DateTime imported" value in Digikam?

no DK do not touch unknown or un-managed tags.

But don't forget Exiv2 is used at end in background. Something
unwanted can be done in this area, but as i know nothing is removed
intentionally by Exiv2 at metadata rewriting stage.

Gilles Caulier

2017-05-19 8:29 GMT+02:00 Mica Semrick <[hidden email]>:

> I would consider it very bad behavior to remove or ovverwritw ever element
> in the XMP file. I certainly hope digikam does not have this behavior.
>
> -m
>
>
> On May 18, 2017 11:16:56 PM PDT, "[hidden email]" <[hidden email]> wrote:
>>
>> Le 19/05/2017 à 07:48, Remco Viëtor a écrit :
>>
>>>  about. But such unknown tags may get lost on rewriting the file.
>>>
>>
>>
>> really? this is pretty odd.
>>
>> some tag may be replaced though (editor's name, for example)
>>
>> jdd
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How do I save "DateTime imported" value in Digikam?

Jens Benecke-2
In reply to this post by Gilles Caulier-4
Hello,

wow, this has started quite a discussion. :)

I have now decided to use DateTimeDigitized to store the import date in iphoto2xmp.
It comes closest in meaning and has no other value for digital camera pictures anyway, and for my scanned images the date is equal to the imported date. This way iPhoto can still use the date.

Thanks for all shared thoughts and considerations!

Regards

--
Jens Benecke - [hidden email]
Keine Lust auf Müll in ihrem Postfach? www.spamfreemail.de



> Am 19.05.2017 um 08:37 schrieb Gilles Caulier <[hidden email]>:
>
> no DK do not touch unknown or un-managed tags.
>
> But don't forget Exiv2 is used at end in background. Something
> unwanted can be done in this area, but as i know nothing is removed
> intentionally by Exiv2 at metadata rewriting stage.
>
> Gilles Caulier
>
> 2017-05-19 8:29 GMT+02:00 Mica Semrick <[hidden email]>:
>> I would consider it very bad behavior to remove or ovverwritw ever element
>> in the XMP file. I certainly hope digikam does not have this behavior.
>>
>> -m
>>
>>
>> On May 18, 2017 11:16:56 PM PDT, "[hidden email]" <[hidden email]> wrote:
>>>
>>> Le 19/05/2017 à 07:48, Remco Viëtor a écrit :
>>>
>>>> about. But such unknown tags may get lost on rewriting the file.
>>>>
>>>
>>>
>>> really? this is pretty odd.
>>>
>>> some tag may be replaced though (editor's name, for example)
>>>
>>> jdd

Loading...