Exif: Extract creation time from DateTimeCreated, if available #2513

Exiftool also seems to be able to extract the compound DateTimeCreated tag. Adding this tag increases the likelihood that you will get a valid date for a photo.
This commit is contained in:
Luca Carlon 2022-07-22 10:13:18 +02:00 committed by GitHub
parent 372ccb9a29
commit c366d75774
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ import (
var exifIfdMapping *exifcommon.IfdMapping
var exifTagIndex = exif.NewTagIndex()
var exifMutex = sync.Mutex{}
var exifDateTimeTags = []string{"DateTimeOriginal", "DateTimeDigitized", "CreateDate", "DateTime"}
var exifDateTimeTags = []string{"DateTimeOriginal", "DateTimeDigitized", "CreateDate", "DateTime", "DateTimeCreated"}
var exifSubSecTags = []string{"SubSecTimeOriginal", "SubSecTimeDigitized", "SubSecTime"}
func init() {