Author Topic: Batch SET Original Date/Time  (Read 4386 times)

0 Members and 1 Guest are viewing this topic.

Bernie

  • Member
  • **
  • Posts: 7
    • View Profile
Batch SET Original Date/Time
« on: 2021-02-25 09:35:41 »
Hi,

I'm trying to set Camera > Original Date/Time using Batch Editor so that being able to set later on (after editing image)
the file info as original date/Time.

I'm this is for either old images with no EXIF at all) or also for screenshots. (.png files)

I Have define following to set meta data from file date:
Set if Blank / Original Date/Time / \i:File date;
Set if Blank / Creation Date (xmp) / \i:File date;
Set if Blank / Modification date / \i:File date;

Script well works :
if File Date is: 15/06/2020 10:38:17.203
Result is as expected  (see attachment).

ISSUE is that this also define a Metadata Date as the current date/time.

When I later use the "Modify File Info" > Set to XMP/EXIF date-time

The File Date-time is set to a "metadata Date" and not the "Camera>Original Date/Time" previously defined!

Any Idea?
Regards

« Last Edit: 2021-02-25 10:01:35 by Bernie »

Daan van Rooijen

  • Administrator
  • Sr. Member
  • *****
  • Posts: 933
    • View Profile
Re: Batch SET Original Date/Time
« Reply #1 on: 2021-02-25 11:43:08 »
Quote
ISSUE is that this also define a Metadata Date as the current date/time.

That, as such, seems correct. The Metadata Date is simply the last time that the metadata was edited.

Quote
When I later use the "Modify File Info" > Set to XMP/EXIF date-time

The File Date-time is set to a "metadata Date" and not the "Camera>Original Date/Time" previously defined!

That's strange. Are you sure that it is setting the time stamp to the Metadata Date and not simply to the current system time? (which of course would also be wrong, but might have a different cause)

Does this also happen when you work with JPG files instead of PNG?

Quote
Any Idea?

Maybe bring it to the attention of tech support..: http://www.thumbsplus.com/support.html
I'm volunteering as a moderator - I do not work for Cerious Software, Inc.

Bernie

  • Member
  • **
  • Posts: 7
    • View Profile
Re: Batch SET Original Date/Time
« Reply #2 on: 2021-03-04 05:00:24 »
Hi,

Thanks,

Regarding your question:
Quote
That's strange. Are you sure that it is setting the time stamp to the Metadata Date and not simply to the current system time? (which of course would also be wrong, but might have a different cause)
Yes, I selected "Set to XMP/EXIF date/time created" in "Modify File Info"

Regarding:
Quote
Does this also happen when you work with JPG files instead of PNG?

Not tested at time of posting because I started first doing this with old screenshots all are in png!

I make a test which gave interesting results:
When I save as jpg an existing png (with Camera>Original = 2020/06/15T10:46:39Z) the resulting jpg didn't retain that Metadata and prevent me doing a test.

I did manually add camera>Original Date/Time to that jpg file. Data was grabbed (Copy/paste) from above (2020/06/15T10:46:39Z) and I noticed that this not worked as expected!

I tested again adding camera>Original Date/Time to that jpg but replaced "/" by "-" and "T" by space (2020-06-15 10:46:39Z). Testing now "Set to XMP/EXIF date/time created" well worked!

Therefore, I understand that
Quote
I Have define following to set meta data from file date:
Set if Blank / Original Date/Time / \i:File date;
Set if Blank / Creation Date (xmp) / \i:File date;
Set if Blank / Modification date / \i:File date;
assigned values using the \i:file instruction are stored in a format they can't be reused later using date time (because of use "/" separator )

Quote
Maybe bring it to the attention of tech support..: http://www.thumbsplus.com/support.html

I will do as per suggested.

Thanks

Bernie

  • Member
  • **
  • Posts: 7
    • View Profile
Re: Batch SET Original Date/Time
« Reply #3 on: 2021-03-05 03:33:12 »
Hi,
For those who may interested, I managed doing a mass fix on files.

After setting Camera>Date/Time using MetaData editor (Set if Blank / Original Date/Time / \i:File date;)

I used RSP (Replace Studio Pro) tool from Funduc.com to achieve a Search and Replace in png files using following regular expression:
Search string: exif:DateTimeOriginal="??/??/????T*"
Replace by string : exif:DateTimeOriginal="%5%6%7%8-%3%4-%1%2T%9"

Afterward I simply selected again using ThumbsPlus and invoked a set to Exif date/time. :)

Hope this may help as this let clearly understand that stored date/time matter.

BTW: I searched a way to achieve similar using Python but fail to found  interesting
base sample script to manipulate  MetaData.

regards

Daan van Rooijen

  • Administrator
  • Sr. Member
  • *****
  • Posts: 933
    • View Profile
Re: Batch SET Original Date/Time
« Reply #4 on: 2021-03-05 09:49:28 »
Thanks Bernie! Interesting approach, I had not heard of RSP before (I guess the 'dominant' solution for mass-editing metadata is still Exiftool with its cryptic commandline interface).
I'm volunteering as a moderator - I do not work for Cerious Software, Inc.