Skip to content

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
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.

3 participants