Problem changing date/time on synology NAS/Photostation

Started by lorife, October 30, 2017, 07:41:25 AM

Previous topic - Next topic

lorife

Hello,
first of all thank you for this great product!

It works great, but I am seeing a problem when changing a datetime on a synology NAS using photostation.

The problem is this:

I have a date with the wrong datetime and photostation displays that datetime.
I then correct the datetime with exiftool but photostation keeps showing the wrong one.
I understand it's a photostation problem that it does not detect the change in the metadata and reload it, but is there a way to bypass the problem?

I don't understand why if I change the metadata using a software made by me using delphi and this component:
https://delphihaven.wordpress.com/ccr-exif/
it works perfectly, and photostation detects all the changes.

Could you help me out?
thank you!

Phil Harvey

Use ExifTool to compare the metadata of the file changed by ExifTool and the file changed by the delphi software.

Then you can use ExifTool to write exactly the same metadata as the other software.

See FAQ 3.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

lorife

Hello, thank you for writing back.
I have done as you asked and these are the results, they mostly look similar.
I really don't understand..

DELPHI:

[ExifTool]      ExifToolVersion                 : 10.64
[System]        FileName                        : foto_delphi.jpg
[System]        Directory                       : c:/Users/lorenzo/Downloads/2000.08
[System]        FileSize                        : 87 kB
[System]        FileModifyDate                  : 2017:10:30 15:11:22+01:00
[System]        FileAccessDate                  : 2017:10:30 14:38:44+01:00
[System]        FileCreateDate                  : 2017:10:30 14:26:27+01:00
[System]        FilePermissions                 : rw-rw-rw-
[File]          FileType                        : JPEG
[File]          FileTypeExtension               : jpg
[File]          MIMEType                        : image/jpeg
[File]          ExifByteOrder                   : Little-endian (Intel, II)
[File]          CurrentIPTCDigest               : eb0d98bd151bfb92ca7b5f00741b7795
[File]          Comment                         : CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 85.
[File]          ImageWidth                      : 604
[File]          ImageHeight                     : 453
[File]          EncodingProcess                 : Baseline DCT, Huffman coding
[File]          BitsPerSample                   : 8
[File]          ColorComponents                 : 3
[File]          YCbCrSubSampling                : YCbCr4:2:0 (2 2)
[JFIF]          JFIFVersion                     : 1.01
[JFIF]          ResolutionUnit                  : None
[JFIF]          XResolution                     : 1
[JFIF]          YResolution                     : 1
[IFD0]          Software                        : Picasa
[IFD0]          ModifyDate                      : 2013:12:01 23:35:30
[IFD0]          Artist                          : Picasa
[ExifIFD]       ExifVersion                     : 0220
[ExifIFD]       DateTimeOriginal                : 2005:10:23 20:06:00
[ExifIFD]       ExifImageWidth                  : 604
[ExifIFD]       ExifImageHeight                 : 453
[ExifIFD]       ImageUniqueID                   : 5e2440d9a50c682e172c47981532c5d1
[InteropIFD]    InteropVersion                  : 0100
[InteropIFD]    RelatedImageWidth               : 604
[InteropIFD]    RelatedImageHeight              : 453
[IFD1]          Compression                     : JPEG (old-style)
[IFD1]          XResolution                     : 72
[IFD1]          YResolution                     : 72
[IFD1]          ResolutionUnit                  : inches
[IFD1]          ThumbnailOffset                 : 393
[IFD1]          ThumbnailLength                 : 7097
[IFD1]          ThumbnailImage                  : (Binary data 7097 bytes, use -b option to extract)
[XMP-exif]      DateTimeOriginal                : 2005:10:23 20:06:00.000
[XMP-xmp]       ModifyDate                      : 2013:12:01 23:35:30+01:00
[XMP-dc]        Creator                         : Picasa
[IPTC]          EnvelopeRecordVersion           : 4
[IPTC]          CodedCharacterSet               : UTF8
[IPTC]          ApplicationRecordVersion        : 4
[IPTC]          DateCreated                     : 4501:01:01
[IPTC]          TimeCreated                     : 00:00:00+00:00
[IPTC]          By-line                         : Picasa
[Photoshop]     IPTCDigest                      : eb0d98bd151bfb92ca7b5f00741b7795
[Composite]     DateTimeCreated                 : 4501:01:01 00:00:00+00:00
[Composite]     ImageSize                       : 604x453
[Composite]     Megapixels                      : 0.274


EXIFTOOL:

[ExifTool]      ExifToolVersion                 : 10.64
[System]        FileName                        : foto_exiftool.jpg
[System]        Directory                       : c:/Users/lorenzo/Downloads/2000.08
[System]        FileSize                        : 88 kB
[System]        FileModifyDate                  : 2017:10:30 15:06:02+01:00
[System]        FileAccessDate                  : 2017:10:30 15:08:09+01:00
[System]        FileCreateDate                  : 2017:10:30 15:08:09+01:00
[System]        FilePermissions                 : rw-rw-rw-
[File]          FileType                        : JPEG
[File]          FileTypeExtension               : jpg
[File]          MIMEType                        : image/jpeg
[File]          ExifByteOrder                   : Little-endian (Intel, II)
[File]          CurrentIPTCDigest               : eb0d98bd151bfb92ca7b5f00741b7795
[File]          Comment                         : CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 85.
[File]          ImageWidth                      : 604
[File]          ImageHeight                     : 453
[File]          EncodingProcess                 : Baseline DCT, Huffman coding
[File]          BitsPerSample                   : 8
[File]          ColorComponents                 : 3
[File]          YCbCrSubSampling                : YCbCr4:2:0 (2 2)
[JFIF]          JFIFVersion                     : 1.01
[JFIF]          ResolutionUnit                  : None
[JFIF]          XResolution                     : 1
[JFIF]          YResolution                     : 1
[IFD0]          Software                        : Picasa
[IFD0]          ModifyDate                      : 2005:10:23 20:06:34
[IFD0]          Artist                          : Picasa
[ExifIFD]       ExifVersion                     : 0220
[ExifIFD]       DateTimeOriginal                : 2005:10:23 20:06:34
[ExifIFD]       CreateDate                      : 2005:10:23 20:06:34
[ExifIFD]       ExifImageWidth                  : 604
[ExifIFD]       ExifImageHeight                 : 453
[ExifIFD]       ImageUniqueID                   : 5e2440d9a50c682e172c47981532c5d1
[InteropIFD]    InteropVersion                  : 0100
[InteropIFD]    RelatedImageWidth               : 604
[InteropIFD]    RelatedImageHeight              : 453
[IFD1]          Compression                     : JPEG (old-style)
[IFD1]          XResolution                     : 72
[IFD1]          YResolution                     : 72
[IFD1]          ResolutionUnit                  : inches
[IFD1]          ThumbnailOffset                 : 428
[IFD1]          ThumbnailLength                 : 5808
[IFD1]          ThumbnailImage                  : (Binary data 5808 bytes, use -b option to extract)
[XMP-x]         XMPToolkit                      : Image::ExifTool 10.64
[XMP-dc]        Creator                         : Picasa
[XMP-exif]      DateTimeOriginal                : 2005:10:23 20:06:34.33-05:00
[XMP-xmp]       ModifyDate                      : 2005:10:23 20:06:34.33-05:00
[IPTC]          EnvelopeRecordVersion           : 4
[IPTC]          CodedCharacterSet               : UTF8
[IPTC]          ApplicationRecordVersion        : 4
[IPTC]          DateCreated                     : 4501:01:01
[IPTC]          TimeCreated                     : 00:00:00+00:00
[IPTC]          By-line                         : Picasa
[Photoshop]     IPTCDigest                      : eb0d98bd151bfb92ca7b5f00741b7795
[Composite]     DateTimeCreated                 : 4501:01:01 00:00:00+00:00
[Composite]     ImageSize                       : 604x453
[Composite]     Megapixels                      : 0.274

Phil Harvey

Both the EXIF and XMP ModifyDate times are different in these files.

I can't help more because

1. I don't know what you think the times should be

2. I don't know what times you were trying to change (ie. what exiftool command you used to "correct the datetime")

3. I don't know what times are displayed by Photostation for these files

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

lorife

I'm sorry I will try to be more specific.

let's say i have a picture in my NAS dated 01/01/2000 and i want to change it to 01/06/2000.

- I change the datetime using delphi, then I go back to photostation, hit F5 to refresh, photostation almost instantly detects the change and displays the new metadata.
- I change the datetime using exiftool, then I go back to photostation, hit F5 to refresh, photostation do not detect ANY change in the metadata. Photostation still shows the old datetime.

the command I used was:

exiftool -AllDates="2005:10:23 20:06:34" "c:/Users/lorenzo/Downloads/2000.08/foto.jpg"

The strange thing is that if I delete the original jpg and then i copy back the modified file, photostation detects the change immediatly.
So, the file written from exiftool is perfect, but for some reason photostation does not detect the change until i delete-copyback the file. thing that I do not have to do when I use the delphi software.

Sorry if I'm not very clear.

Phil Harvey

OK, so the question is only what is causing Photostation to update the metadata.

Perhaps Photostation is still looking at the "_original" file preserved by ExifTool?  Try adding -overwrite_original or -overwrite_original_in_place to your command to see what happens.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

lorife

Exactly, that is the problem.

I just tried both your options and it does not work.

Do you have other ideas?
I don't know what to think, maybe exiftool is too fast and photostation does not detect any change?

Phil Harvey

I think that this question may be better answered by the Photostation people.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

lorife

I did write to them and they did not actually help me.

I wanted to create a web page in my NAS to update the pictures locally so I thought I could use exiftool.
I thought maybe I could make it work but it seems not.

Thank you for your help.

h4de5

@lorife: I do have the same problem. Any updates I made using exiftool are not shown in the photostation. normal pictures that I take with my camera have the correct date and are sorted correctly. But when I try to sort images I have downloaded in the same way, they are always placed at the on or the other end of the list. I am using this command line:
exiftool "-DateTimeOriginal<FileModifyDate" "-CreateDate<FileModifyDate" "-modifydate<FileModifyDate" "-datetime<FileModifyDate" -P image-file

When listing the exif information, I can see the same tag name with correct dates - but in different groups. Is there a way to set Tagnames in specified groups? I think the problem is, that we do not know, which exif-tag the photostation is actually using for sorting images.

did you find a solution to this?

lorife

Unfortunately I did not find a solution but I'm glad I'm not the only one. Maybe Phil can help now that we have more information.
Please share the solution if you ever find one!

Phil Harvey

Quote from: h4de5 on May 14, 2018, 01:56:53 PM
When listing the exif information, I can see the same tag name with correct dates - but in different groups.

Which group is it in?  (use -G3 to see the groups)  Which group do you want it in?

QuoteIs there a way to set Tagnames in specified groups?

yes, like this:

exiftool "-GROUP:DateTimeOriginal<FileModifyDate" ...

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).