mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
fix(server): incorrect video creation date EXIF extraction (#4309)
* fix(server): incorrect video creation date EXIF extraction * update dependency * update dependency * revert * remove unused code
This commit is contained in:
parent
6d1868a6e0
commit
b3c82d5ba2
1 changed files with 13 additions and 1 deletions
|
@ -311,7 +311,19 @@ export class MetadataService {
|
|||
assetId: asset.id,
|
||||
bitsPerSample: this.getBitsPerSample(tags),
|
||||
colorspace: tags.ColorSpace ?? null,
|
||||
dateTimeOriginal: exifDate(firstDateTime(tags as Tags)) ?? asset.fileCreatedAt,
|
||||
dateTimeOriginal:
|
||||
exifDate(
|
||||
firstDateTime(tags as Tags, [
|
||||
'SubSecDateTimeOriginal',
|
||||
'DateTimeOriginal',
|
||||
'SubSecCreateDate',
|
||||
'CreationDate',
|
||||
'CreateDate',
|
||||
'SubSecMediaCreateDate',
|
||||
'MediaCreateDate',
|
||||
'DateTimeCreated',
|
||||
]),
|
||||
) ?? asset.fileCreatedAt,
|
||||
exifImageHeight: validate(tags.ImageHeight),
|
||||
exifImageWidth: validate(tags.ImageWidth),
|
||||
exposureTime: tags.ExposureTime ?? null,
|
||||
|
|
Loading…
Reference in a new issue