feat(server): parse EXIF creation time for some insta360 images (#17564)

It seems insta360 stores metadata in XMP GPano tags, with their own
non-standard and undocumented addition `SourceImageCreateTime`. For some
pictures this is the only EXIF tag containing a creation time.
This commit is contained in:
Erik Nygren 2025-04-14 05:44:18 +02:00 committed by GitHub
parent 79d4ce2d6d
commit 7562088fac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,6 +42,8 @@ const EXIF_DATE_TAGS: Array<keyof Tags> = [
'SubSecMediaCreateDate',
'MediaCreateDate',
'DateTimeCreated',
// Undocumented, non-standard tag from insta360 in xmp.GPano namespace
'SourceImageCreateTime' as keyof Tags,
];
const validate = <T>(value: T): NonNullable<T> | null => {