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

Generate blurred placeholder image before real image loads? #213

Open
dpyzo0o opened this issue Oct 16, 2020 · 1 comment
Open

Generate blurred placeholder image before real image loads? #213

dpyzo0o opened this issue Oct 16, 2020 · 1 comment

Comments

@dpyzo0o
Copy link

dpyzo0o commented Oct 16, 2020

Hi folks, I would like to implement the blurred image placeholder feature just like what gatsby-image does. I read through the docs and I could get the blurred image using lqip query params. The problem is I don't have the width/height info of the image, therefore I cannot make the blurred image the same size as the real image. I read some source code from gatsby-image and it turns out they have access to the aspect-ratio of the processed image, code here.

Can someone help me?

@maxwolfs
Copy link

Hi,
you can checkout @tilman's repo: Intersection-Placeholder, that is working with the canary of next-optimized-images.

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

No branches or pull requests

2 participants