-
Notifications
You must be signed in to change notification settings - Fork 10.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
fix(gatsby-plugin-sharp): ignore incorrect duotone options #28999
Conversation
Co-authored-by: Matt Kane <matt@gatsbyjs.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only changes the base64 image. The main change needs to be in process-file
You can't rely on logging in process-file though, because when running in Cloud you can't see those errors. I think the best bet is to also check in image-data.ts, early on. |
Oh wow, I thought that is where this was. Wake up me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…28999) * fix(gatsby-plugin-sharp): ignore incorrect duotone options * Update packages/gatsby-plugin-sharp/src/index.js Co-authored-by: Matt Kane <matt@gatsbyjs.com> * Update index.js * add warning for invalid duotone options Co-authored-by: Matt Kane <matt@gatsbyjs.com> Co-authored-by: Laurie <laurie@gatsbyjs.com>
This fixes people wrongly specifying
duotone
without a highlight/shadow by ignoring the option and warning the user that it was ignored.[ch22572]