Skip to content
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

Support nextConfig.images.formats #1374

Closed
ascorbic opened this issue Jun 9, 2022 · 1 comment · Fixed by #1438
Closed

Support nextConfig.images.formats #1374

ascorbic opened this issue Jun 9, 2022 · 1 comment · Fixed by #1438

Comments

@ascorbic
Copy link
Contributor

ascorbic commented Jun 9, 2022

The next/image edge function returns AVIF images if the browser supports it. However it can be slower to process than other formats, so may time out (e.g. #687 (comment) ). In sites that need to use large images, a workaround could be to add support for specifying supported image formats, and not rewrite to AVIF format if it is disabled. The value could be read from the config and included in the edge function.

@hughrawlinson
Copy link

I didn't realize that the nextconfig.images.formats config wasn't supported in Netlify, this explains a lot! Thanks! 😄 Subscribing to this issue.

@ascorbic ascorbic changed the title Allow disabling of AVIF images Support nextConfig.images.formats Jun 10, 2022
@kodiakhq kodiakhq bot closed this as completed in #1438 Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants