-
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
using-gatsby-plugin-image fails to download images that don't have a file extension #34917
Comments
Hi @frith77! Thanks for reporting this. I cloned your project and had a look, seems like you're passing a string to the I tried adjusting the query to banner {
imageFile {
childImageSharp {
gatsbyImageData(width: 200)
}
}
} but |
Hi @tyhopp Thanks for getting back to me, I assume that directus must support values compatible with imageFile, not sure what they are, however the documentation for directus is here https://docs.directus.io/reference/files/ the helper function is just generating the url to the image however, the example |
Hi @frith77, I was able to reproduce the other image fetch request issue you mentioned for If you're interested in seeing the difference as well, what I did was force the resolution of gatsby-core-utils in "resolutions": {
"gatsby-core-utils": "3.7.0"
} |
@tyhopp Hi, thanks for helping on this. Following the tutorial I got the same. But I added "resolutions" to my package.json and still the issue, images are not rendered. It works if the image came from local directory src="../images/bla.jfif" but nor from remote url. |
This should be fixed with #34930 (comment) |
Yes, it does! Thank you very much @LekoArts . By the way, what you do is awesome. Thanks for sharing! |
I am having this issue with gatsby 5.3.1 I noticed I do not experience the error when I run 'gatsby develop' from macOS terminal, but if I run it from within the terminal in VSCode then images will not display. Leaving this here for anyone who might happen across this thread. @LekoArts |
@IzzyDevs Hopefully you got around this. I was going through the tut also. |
Preliminary Checks
Description
following https://www.gatsbyjs.com/docs/how-to/images-and-media/using-gatsby-plugin-image/#static-images
I was unable to download and generated webp files
Reproduction Link
https://github.com/badape-net/avalon-gatsby-web
Steps to Reproduce
the code i used is
const image = getImage(getAssetURL(page.banner.id))
image is not very important however it does generate the image from the instance of directus used above, all i've done is copy the example in the documentation
Expected Result
I was hoping to get lots of nice downloaded transcoded images, sadly all i got was:
http://localhost:8000/static/69d500d9d1a03171eb9b136846e51805/1e5ef/Juvenile_Ragdoll.webp
Actual Result
from the console using npm run develop
and in the browser
i believe getImage is failing to download the image
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: