feat: optionally generate thumbnails for invalid images (#11126)

This commit is contained in:
Saschl
2024-07-18 18:07:22 +02:00
committed by GitHub
parent c77702279c
commit d37e8ede3b
7 changed files with 57 additions and 13 deletions
+1
View File
@@ -559,6 +559,7 @@ export class PersonService {
colorspace: image.colorspace,
quality: image.quality,
crop: this.getCrop({ old: { width: oldWidth, height: oldHeight }, new: { width, height } }, { x1, y1, x2, y2 }),
processInvalidImages: process.env.IMMICH_PROCESS_INVALID_IMAGES === 'true',
} as const;
await this.mediaRepository.generateThumbnail(inputPath, thumbnailPath, thumbnailOptions);