-
Notifications
You must be signed in to change notification settings - Fork 52
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
Integration with gatsby-image #3
Comments
Hello, I ve already started working on this, i hope to have it ready soon. I am also new to gatsby :) so i wouldn't know how to give you any pointers. |
So, i think i have working the gatsby-image part. I basically create the srcsets etc based on the available thumbnails and the original img (so no resizing etc) so that the lazy loading works. |
* Provide srcSets from the available thumbnails and original image * Provide src based on user options (defaults to original) Contributes: #3
Hey so i ve refactored everything from this morning. you should be able to now use gatsby image and download locally everything. Please have a look at the readme for details and let me know if things work for you as expected! |
Just tried it with fluid images and works flawlessly, thanks! |
I can't seem to get this to work. This is what I'm doing:
then in my component:
If i just get the original or thumbnail it works, but if I switch over to localFile etc...the images don't work anymore...anything i should be doing differently? |
hey there, |
maybe you have a repo i can look? not sure what InstaImage is for example. |
sure: https://github.com/arrowgtp/alma also,
is is a child of a grid item, but otherwise everything about it's css is pretty normal. Also, just to re-iterate, if I load up this instead:
instead of:
the images load just fine...just no dope gatsby image processing...and lighthouse yelled at me for it :-( |
So you are not using gatsby image, just plain image tag! |
I'm importing:
I think this is correct, but let me double check it really quick. |
yeah but your styled-component is not using it! it is using |
welp, looks like i'm not so smart! 😬 k, that fixed it, along with changing Thank you very much for your expedient help! |
no worries! happy to help! |
While having the thumbnail urls is great, I'd love to use the full image as source for gatsby-image (specially because of lazy-load and avoiding company firewalls blocking instagram urls on visitors).
Apparently gatsby-source-contentful and gatsby-source-datocms already do something similar.
I'm new at gatsby and its plugins, but it seems conceivable. Would a PR for this be welcome? Any pointers on how I should get started?
The text was updated successfully, but these errors were encountered: