-
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
Add support for querying SVGs as images #3277
Comments
I couldn't find the issue where this has been discussed before but what I suggest is that we add to This would mean adding a new field e.g. How's this sound? Would you like to do a PR? |
This sounds absolutely great! Unfortunately, I'm pretty busy nowadays, so I cannot do a PR. |
@KyleAMathews Also, I think this proposal might be interesting for Gatsby v2: facebook/create-react-app#3722 |
@CanRau yeah, it’s fine now. |
I think it would be great if public URLs for SVGs could be generated through ImageSharp. Currently, if I want to use vector and raster graphics interchangeably, I need to use some extra code similar to below:
Also, I have to put all the related images to the
/static
folder and make them discoverable by gatsby-source-filesystem. Querying SVGs just like raster images would simplify this workflow by a lot.The text was updated successfully, but these errors were encountered: