Skip to content
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

Example of how to use the <Zoom> zoomImg with gatsby getImage #2

Merged
merged 1 commit into from
Aug 23, 2022
Merged

Example of how to use the <Zoom> zoomImg with gatsby getImage #2

merged 1 commit into from
Aug 23, 2022

Conversation

rpearce
Copy link
Contributor

@rpearce rpearce commented Aug 23, 2022

You should console.log(getImage(data?.large)) and see what info you have in there. I was able to pull the original fallback image, plus some other fancy .webp values from the possible sources key.

For the zoomImg, if you can get access to the src, sizes, and srcSet you want, then you're good to go.

@lezan lezan merged commit 974f4d7 into lezan:master Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants