-
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
Image-sharp silently fails to process animated gifs #18699
Comments
We'd be happy to receive a PR adding a clearer error message when that happens. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Let's try to improve that. |
Hi @LekoArts I was looking into how to address this, but wasn't sure where to implement the error message. As I understand, after having added a gif to one's cms, Should the error be displayed by |
Hey @sjku1, Could you maybe setup a small reproduction on a local gatsby site? Or does this only happen when using something like Contentful? I'm happy to give you pointers on how to fix this when I can reproduce it. I think we should fix this in transformer-sharp but the error probably needs to be thrown from gatsby-plugin-sharp. I'm sorry if this doesn't make much sense but I'll do a proper explanation when a repro is given |
I am also querying gif images and get a null object for ChildImageSharp. Any fixes for this? |
@caseykey sorry to be the bearer of bad news, but to the best of my knowledge at this stage you'll still need to use a standard html |
@jonniebigodes I found this workaround |
Neither static nor animated GIFs are working in my instance. |
We added warning about gifs (so it doesn't silentely fail) in |
So are we supposed to have two tags now - gatsby-image for most, and a regular img tag for gifs? |
@wesbos Unfortunately Hence this issue was solely about this failing silently in our transformer. It tripped up a lot of folks who had But I understand the frustration of course, so we should ask Lovell how soon this could be merged and be available with our current setup :) In the meantime we could iterate on this warning and not show it when you have |
Just wanted to point out that |
Description
If I have an animated gif in my content, image-sharp or transformer sharp does not throw any error, does not notify in any way that the image could not/has not been processed.
Steps to reproduce
Use an animated gif in content from your cms, see that childImageSharp is null
Expected result
An error should be displayed when the image is not processed.
Actual result
No error, just null data
Environment
System:
OS: macOS 10.14.6
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.15.2 - /usr/local/bin/node
Yarn: 1.17.3 - ~/.yarn/bin/yarn
npm: 6.11.3 - /usr/local/bin/npm
Languages:
Python: 2.7.10 - /usr/bin/python
Browsers:
Chrome: 77.0.3865.120
Firefox: 69.0.2
Safari: 13.0.1
npmPackages:
gatsby: ^2.15.19 => 2.15.19
gatsby-image: ^2.2.20 => 2.2.20
gatsby-plugin-emotion: ^4.1.7 => 4.1.7
gatsby-plugin-feed: ^2.3.13 => 2.3.13
gatsby-plugin-fixhash: ^0.0.4 => 0.0.4
gatsby-plugin-google-analytics: ^2.1.17 => 2.1.17
gatsby-plugin-google-tagmanager: ^2.1.10 => 2.1.10
gatsby-plugin-manifest: ^2.2.18 => 2.2.18
gatsby-plugin-netlify: ^2.1.15 => 2.1.15
gatsby-plugin-netlify-cache: ^1.2.0 => 1.2.0
gatsby-plugin-offline: ^3.0.8 => 3.0.8
gatsby-plugin-react-axe: ^0.2.2 => 0.2.2
gatsby-plugin-react-helmet: ^3.1.8 => 3.1.8
gatsby-plugin-sharp: ^2.2.25 => 2.2.25
gatsby-plugin-sitemap: ^2.2.14 => 2.2.14
gatsby-source-drupal: ^3.2.30 => 3.2.30
gatsby-source-filesystem: ^2.1.25 => 2.1.25
gatsby-transformer-sharp: ^2.2.16 => 2.2.16
npmGlobalPackages:
gatsby-cli: 2.5.12
The text was updated successfully, but these errors were encountered: