You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm using gatsby-plugin-sharp, and I've got the following error message when generating thumbnails:
TypeError: Cannot read property 'bitmap' of undefined
at Potrace._processLoadedImage (/Users/svengaubert/workspace/fullstackrocket/gatsby-stripe-netlify-cms-tailwindcss/node_modules/potrace/lib/Potrace.js:1002:35)
at Jimp.<anonymous> (/Users/svengaubert/workspace/fullstackrocket/gatsby-stripe-netlify-cms-tailwindcss/node_modules/potrace/lib/Potrace.js:1050:14)
at Timeout._onTimeout (/Users/svengaubert/workspace/fullstackrocket/gatsby-stripe-netlify-cms-tailwindcss/node_modules/@jimp/core/dist/index.js:354:25)
Error: Unsupported MIME type: image/webp
After some investigations, it seems JIMP doesn't support webp and sends back the error "Error: Unsupported MIME type: image/webp". But potrace doesn't check this error, and directly pass a null image to _processLoadedImage, as we can see here:
I don't really have time to maintain this, hence me asking for a PR. Would be open to adding maintainers who have a vested interest in its survival, perhaps the gatsby folks.
Hello, I'm using gatsby-plugin-sharp, and I've got the following error message when generating thumbnails:
After some investigations, it seems JIMP doesn't support webp and sends back the error "Error: Unsupported MIME type: image/webp". But potrace doesn't check this error, and directly pass a null image to _processLoadedImage, as we can see here:
node-potrace/lib/Potrace.js
Line 1048 in e1a3d0c
Would it be possible to check the error before calling _processLoadedImage ?
Thanks
The text was updated successfully, but these errors were encountered: