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

fix(gatsby-plugin-sharp): Add avif to pipeline #28871

Merged
merged 1 commit into from
Jan 5, 2021
Merged

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Jan 5, 2021

Adds explicit avif() call to pipeline. It works locally without this, but fails in cloud worker

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jan 5, 2021
@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 Jan 5, 2021
@ascorbic ascorbic added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Jan 5, 2021
@gatsbybot gatsbybot merged commit 1debff5 into master Jan 5, 2021
@gatsbybot gatsbybot deleted the fix/avuf-pipeline branch January 5, 2021 17:24
vladar pushed a commit that referenced this pull request Jan 5, 2021
@@ -123,6 +123,10 @@ exports.processFile = (file, transforms, options = {}) => {
quality: transformArgs.quality,
force: transformArgs.toFormat === `tiff`,
})
.avif({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦🏼

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It didn't actually need it!

vladar pushed a commit that referenced this pull request Jan 5, 2021
@persocon
Copy link

clonedPipeline.resize(...).png(...).webp(...).tiff(...).avif is not a function 🤷‍♀️

@ascorbic
Copy link
Contributor Author

ascorbic commented Jan 11, 2021

@persocon You need to upgrade sharp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes 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.

5 participants