osxphotos: Wrong metadata for TIFF modified date
Recently I found a bug (tested on version 0.36.0). Modify Date metadata in exported photos is incorrect – during export date is set on current date.
Problem exists for photos with .HEIC extension. There is photo f.ex. from 2018. Not edited, original. After export using osxphotos with --exiftool and --touch-file together, exported photo returns such metadata (using exiftool -a -G1 in terminal):
[System] File Modification Date/Time : 2018:08:17 20:33:43+02:00
[IFD0] Modify Date : 2020:10:29 21:05:28
[ExifIFD] Date/Time Original : 2018:08:17 20:33:43
[ExifIFD] Create Date : 2018:08:17 20:33:43
[Composite] Create Date : 2018:08:17 20:33:43.289
[Composite] Date/Time Original : 2018:08:17 20:33:43.289+02:00
The same photo exported from Photos.app using built-in method returns following metadata in exiftool:
[System] File Modification Date/Time : 2018:08:17 20:33:43+02:00
[IFD0] Modify Date : 2018:08:17 20:33:43
[ExifIFD] Date/Time Original : 2018:08:17 20:33:43
[ExifIFD] Create Date : 2018:08:17 20:33:43
[Composite] Create Date : 2018:08:17 20:33:43.289
[Composite] Date/Time Original : 2018:08:17 20:33:43.289
Easy to find there is difference in [IFD0] Modify Date. Also presented in Information window in Preview.app (tab TIFF).
Many software for photo managing use modify date to sort pictures, then everything starts to be a mess. Unfortunately I don’t have any clue how to solve above issue in the code. Let me know if I can provide more info.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (17 by maintainers)
Commits related to this issue
- Fixed handling of date_modified for Catalina, issue #247 — committed to RhetTbull/osxphotos by RhetTbull 4 years ago
- Partial fix for issue #247 on Mojave — committed to RhetTbull/osxphotos by RhetTbull 4 years ago
- Updated --exiftool to set dates/times as Photos does, issue #247 — committed to RhetTbull/osxphotos by RhetTbull 4 years ago
- Added --ignore-date-modified flag, issue #247 — committed to RhetTbull/osxphotos by RhetTbull 4 years ago
- Fix for issue #247 — committed to RhetTbull/osxphotos by RhetTbull 4 years ago
@RhetTbull Thank you for improvements and sorry for delay in response.
It looks like now it’s working properly. Below I paste results: