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

feat: Add AVIF image support to beta image plugin #28742

Merged
merged 6 commits into from
Dec 24, 2020
Merged

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Dec 23, 2020

The latest version of sharp adds support for AVIF by default.

This PR upgrades sharp to 0.27.0 and enables AVIF support in the gatsbyImageData resolver. Canary is available by installing gatsby-plugin-sharp@avif gatsby-plugin-image@avif gatsby-transformer-sharp@avif. You can use it by passing formats={["auto", "webp", "avif"]} to StaticImage, or formats: [AUTO, WEBP, AVIF] to gatsbyImageData.

This upgrades the cypress image to latest Chrome so that AVIF is supported

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 23, 2020
@ascorbic ascorbic added topic: media Related to gatsby-plugin-image, or general image/media processing topics and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Dec 23, 2020
@ascorbic ascorbic marked this pull request as draft December 23, 2020 11:42
@ascorbic ascorbic marked this pull request as ready for review December 23, 2020 14:32
@ascorbic ascorbic changed the title feat: Add experimental AVIF image support feat: Add AVIF image support to beta image plugin Dec 23, 2020
@ascorbic ascorbic merged commit 2058775 into master Dec 24, 2020
@ascorbic ascorbic deleted the feat/avif-support branch December 24, 2020 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: media Related to gatsby-plugin-image, or general image/media processing topics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants