Closed prichey closed 3 years ago
Looking into this a bit more, it seems like ContentfulAsset.gatsbyImageData
should conform to ImageSharp.gatsbyImageData
(type extension here). Is there any reason why this isn't possible? I understand not all ContentfulAssets
are images, so maybe it makes sense to expose the underlying childImageSharp
? I'm curious to hear what the thinking is here, or if there's a workaround here I'm unaware of. Thanks!
After looking into this even more, it looks like I need to set downloadLocal: true
to be able to get at the underlying localFile
in order to enable full Sharp transformations. If that's the case, this might just be a documentation problem since I don't see any reference to the fact that you're currently limited in the sharp transformations in the gatsbyImageData
query without the downloadLocal
route. I'm curious to hear others' thoughts though!
Hiya!
This issue has gone quiet. Spooky quiet. π»
We get a lot of issues, so we currently close issues after 60 days of inactivity. Itβs been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! πͺπ
This is not stale! Maybe if maintainers don't have the bandwidth to look into issues we should extend the timeout for the stalebot?
Hiya!
This issue has gone quiet. Spooky quiet. π»
We get a lot of issues, so we currently close issues after 60 days of inactivity. Itβs been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! πͺπ
Yeah, I give up
Ran into a similar issue today with hygraph (GraphCMS). I thinking I'll build my own getImage
method to fit my needs instead of relying on the one provided.
Description
I'd like to pass in a configuration object for
tracedSVGOptions
(per Gatsby reference, example) but I get the following GraphQL error:Unknown argument "tracedSVGOptions" on field "ContentfulAsset.gatsbyImageData".
.Steps to reproduce
In the query:
Yields the error:
Unknown argument "tracedSVGOptions" on field "ContentfulAsset.gatsbyImageData".
Expected result
The query should not throw, and a traced SVG with the given background / color should be rendered.
Actual result
The above error is thrown.
Environment