Wrap sharp calls in try/catch to avoid crashing on bad images #28640
Labels
good first issue
Issue that doesn't require previous experience with Gatsby
stale?
Issue that may be closed soon due to the original author not responding any more.
type: bug
An issue or pull request relating to a bug in Gatsby
A follow up to #28614
Here are a few other places where sharp reads/writes images that don't seem to have try/catch setup around them.
gatsby/packages/gatsby-plugin-sharp/src/image-data.ts
Line 61 in b81e6bd
gatsby/packages/gatsby-plugin-sharp/src/duotone.js
Lines 103 to 123 in b81e6bd
gatsby/packages/gatsby-plugin-sharp/src/duotone.js
Lines 18 to 36 in b81e6bd
The text was updated successfully, but these errors were encountered: