-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression in v0.29, it has bigger file sizes for avif images (37% worse) #2850
Comments
https://sharp.pixelplumbing.com/changelog#v0290---17th-august-2021
Try adding Perhaps you could also experiment with the |
That was a fast answer! It fixed the issue both for avif and heif, thanks a lot @lovell! |
Generally, AVIF quality can be lower compared to WebP so we can adjust this for the user so that it looks roughly the same depending on if the browser supports AVIF or WebP. - Fixes #31254 - Related to lovell/sharp#2850
Generally, AVIF quality can be lower compared to WebP so we can adjust this for the user so that it looks roughly the same depending on if the browser supports AVIF or WebP. - Fixes vercel#31254 - Related to lovell/sharp#2850
Are you using the latest version? Is the version currently in use as reported by
npm ls sharp
the same as the latest version as reported bynpm view sharp dist-tags.latest
?Yes, actually caught the regression in my project with a renovate upgrade https://github.com/ng-easy/platform/pull/174
What are the steps to reproduce?
Compress an image to avif format
What is the expected behaviour?
Keep small filesizes
Are you able to provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem?
Let me know if truly needed
Are you able to provide a sample image that helps explain the problem?
Yes, attached size regression avif sharp v0.29.zip
What is the output of running
npx envinfo --binaries --system
?The text was updated successfully, but these errors were encountered: