1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-08 23:07:06 +02:00

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

View File

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