1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-25 02:04:15 +02:00

Use webp for thumbnails

This commit is contained in:
sam365724 2022-11-20 14:03:50 +01:00 committed by GitHub
parent 3b6f8d7db1
commit e2025d3556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,7 @@ export class ImageRendererFactory {
fit: 'cover',
});
}
await image.withMetadata().jpeg().toFile(input.outPath);
await image.withMetadata().webp({ lossless: true, effort: 6, quality: 65 }).toFile(input.outPath);
};
}
}