fix: revert switch to tiff

This commit is contained in:
Jonathan Jogenfors 2023-10-15 22:37:42 +02:00
parent 4c56ef0526
commit 770ac0063e

View file

@ -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.