mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
fix(server): extract image description (#6344)
This commit is contained in:
parent
4f021a74ed
commit
984feafb90
@ -39,6 +39,7 @@ describe(`Supported file formats (e2e)`, () => {
|
||||
make: 'SONY',
|
||||
model: 'DSLR-A550',
|
||||
orientation: null,
|
||||
description: 'SONY DSC',
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -64,6 +65,7 @@ describe(`Supported file formats (e2e)`, () => {
|
||||
make: 'SONY',
|
||||
model: 'DSLR-A550',
|
||||
orientation: null,
|
||||
description: 'SONY DSC',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -411,6 +411,7 @@ describe(MetadataService.name, () => {
|
||||
DateTimeOriginal: new Date('1970-01-01').toISOString(),
|
||||
ExposureTime: '100ms',
|
||||
FocalLength: 20,
|
||||
ImageDescription: 'test description',
|
||||
ISO: 100,
|
||||
LensModel: 'test lens',
|
||||
MediaGroupUUID: 'livePhoto',
|
||||
@ -432,6 +433,7 @@ describe(MetadataService.name, () => {
|
||||
bitsPerSample: expect.any(Number),
|
||||
colorspace: tags.ColorSpace,
|
||||
dateTimeOriginal: new Date('1970-01-01'),
|
||||
description: tags.ImageDescription,
|
||||
exifImageHeight: null,
|
||||
exifImageWidth: null,
|
||||
exposureTime: tags.ExposureTime,
|
||||
|
@ -456,6 +456,7 @@ export class MetadataService {
|
||||
bitsPerSample: this.getBitsPerSample(tags),
|
||||
colorspace: tags.ColorSpace ?? null,
|
||||
dateTimeOriginal: this.getDateTimeOriginal(tags) ?? asset.fileCreatedAt,
|
||||
description: (tags.ImageDescription || tags.Description) ?? '',
|
||||
exifImageHeight: validate(tags.ImageHeight),
|
||||
exifImageWidth: validate(tags.ImageWidth),
|
||||
exposureTime: tags.ExposureTime ?? null,
|
||||
|
Loading…
Reference in New Issue
Block a user