From 770ac0063eb085c18ee58bc7d85b9860da41473e Mon Sep 17 00:00:00 2001 From: Jonathan Jogenfors Date: Sun, 15 Oct 2023 22:37:42 +0200 Subject: [PATCH] fix: revert switch to tiff --- server/src/infra/repositories/media.repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/infra/repositories/media.repository.ts b/server/src/infra/repositories/media.repository.ts index cc6396f10..b213644c9 100644 --- a/server/src/infra/repositories/media.repository.ts +++ b/server/src/infra/repositories/media.repository.ts @@ -29,7 +29,7 @@ export class MediaRepository implements IMediaRepository { const buffer = await sharp(input, { failOn: 'none' }) .resize(options.size, options.size, { fit: 'outside', withoutEnlargement: true }) .rotate() - .tiff() + .jxl({ lossless: true }) .toBuffer(); // A second sharp instance is required for the ICC profile, as all metadata // is preserved otherwise.