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
I'm running Gatsby version ^4.0.1 and the gatsby-source-sanity version ^7.1.0. After deploying my Sanity graphql api, I am in my http://localhost:8000/___graphql and attempting to query an image asset, supplying format params for gatsbyImageData, yet it is still just returning the .jpg format i've uploaded. See screenshot below.
Is this a version issue? What am i doing wrong?
The text was updated successfully, but these errors were encountered:
At the moment, this is intentional. We haven't implemented the formats option in our usage of gatsbyImageData, and I'm not sure we ever will. Our CDN can serve the best format for the user based on their device's capabilities through the auto=format query parameter.
This means that by using that data in your screenshot, users will automatically get WebP if their device supports it, and JPG if not. We have plans for supporting AVIF, and when that happens you'll get it in all of your images solely by using the auto=format parameter.
I'm closing this issue, for now, assuming our image CDN achieves your desired outcome. If that's not the case and you have a need for static formats, do let us know, though. We're glad to consider it for our roadmap 😄
I'm running Gatsby version ^4.0.1 and the gatsby-source-sanity version ^7.1.0. After deploying my Sanity graphql api, I am in my http://localhost:8000/___graphql and attempting to query an image asset, supplying format params for gatsbyImageData, yet it is still just returning the .jpg format i've uploaded. See screenshot below.
Is this a version issue? What am i doing wrong?
The text was updated successfully, but these errors were encountered: