Original implementation with just a catch block added.

This commit is contained in:
Skyler Mäntysaari
2023-01-29 23:35:27 +02:00
parent 336e26321d
commit 7ba0513e30

View File

@@ -50,7 +50,7 @@ export class ThumbnailGeneratorProcessor {
if (asset.type == AssetType.IMAGE) {
try {
await sharp(asset.originalPath, { failOnError: true })
await sharp(asset.originalPath, { failOnError: false })
.resize(1440, 2560, { fit: 'inside' })
.jpeg()
.rotate()