We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6749ee8 commit 8ce13d3Copy full SHA for 8ce13d3
src/loader.ts
@@ -172,13 +172,13 @@ async function processImage(
172
let output: sharp.Sharp
173
switch (format) {
174
case 'jpeg':
175
- output = resized.jpeg({ progressive: size > 500 })
+ output = resized.jpeg({ quality: 75, progressive: size > 500 })
176
break
177
case 'webp':
178
- output = resized.webp()
+ output = resized.webp({ quality: 75 })
179
180
case 'avif':
181
- output = resized.avif()
+ output = resized.avif({ quality: 50 })
182
183
}
184
const data = await output.toBuffer()
0 commit comments