-
-
Notifications
You must be signed in to change notification settings - Fork 875
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
Any way to optimize images? #48
Comments
This starter is using the If you're looking on how to use the You can also check out the Gatsby.js community, or - for Ghost specific questions - head over to our forum, where you'd be able to reach more people with this question. |
@sethxd After adding the gatsby-plugin-remote-images to the gatsby configuration you have to add to the new tag to the correspondent nodes in utils/fragment.js For example, if you left the default name property in the remote plugin (localImage) your fragment should look like:
This also goes for all the nodes where you gonna use the images: GhostPost, GhostPage, etc Then you can query that localImages as Now you have the images locally and you can focus in the task of optimizing as you do with a Gatsby local image. |
Thanks @MarioHdpz, I'll have to try that. |
I'm struggling to figure out a way to optimize images. I believe I can't use gatsby-image because the images are stored remotely in Ghost. I might be able to use gatsby-image for the featured images if I use gatsby-plugin-remote-images first, because I can find those in GraphQL, but I'm not sure how to write the query for that.
Does anyone have experience doing this who could offer me some guidance?
The text was updated successfully, but these errors were encountered: