This commit is contained in:
seb
2026-09-29 13:44:28 +02:00
parent 4bc99b3fdb
commit 26d2f83d64

View File

@@ -35,9 +35,9 @@ export default async function processAvifImage(inputBuffer) {
})
: sharp(input)
.resize(FULL_MAX, FULL_MAX, { fit: 'inside', withoutEnlargement: true })
.avif({ effort: 4 })
.avif({ effort: 2 })
.toBuffer({ resolveWithObject: true }),
thumbPipeline.clone().avif({ effort: 4 }).toBuffer({ resolveWithObject: true }),
thumbPipeline.clone().avif({ effort: 2 }).toBuffer({ resolveWithObject: true }),
thumbPipeline
.clone()
.resize(100, 100, { fit: 'inside', withoutEnlargement: true })