diff --git a/packages/next/src/server/image-optimizer.ts b/packages/next/src/server/image-optimizer.ts index a7cb884dc5927..607bd9636b8dd 100644 --- a/packages/next/src/server/image-optimizer.ts +++ b/packages/next/src/server/image-optimizer.ts @@ -546,9 +546,9 @@ export async function optimizeImage({ } if (contentType === AVIF) { - const avifQuality = quality - 20 transformer.avif({ - quality: Math.max(avifQuality, 1), + quality: Math.max(quality - 20, 1), + effort: 3, }) } else if (contentType === WEBP) { transformer.webp({ quality })