u
This commit is contained in:
@@ -35,9 +35,9 @@ export default async function processAvifImage(inputBuffer) {
|
|||||||
})
|
})
|
||||||
: sharp(input)
|
: sharp(input)
|
||||||
.resize(FULL_MAX, FULL_MAX, { fit: 'inside', withoutEnlargement: true })
|
.resize(FULL_MAX, FULL_MAX, { fit: 'inside', withoutEnlargement: true })
|
||||||
.avif({ effort: 4 })
|
.avif({ effort: 2 })
|
||||||
.toBuffer({ resolveWithObject: true }),
|
.toBuffer({ resolveWithObject: true }),
|
||||||
thumbPipeline.clone().avif({ effort: 4 }).toBuffer({ resolveWithObject: true }),
|
thumbPipeline.clone().avif({ effort: 2 }).toBuffer({ resolveWithObject: true }),
|
||||||
thumbPipeline
|
thumbPipeline
|
||||||
.clone()
|
.clone()
|
||||||
.resize(100, 100, { fit: 'inside', withoutEnlargement: true })
|
.resize(100, 100, { fit: 'inside', withoutEnlargement: true })
|
||||||
|
|||||||
Reference in New Issue
Block a user