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

Does this support next/future/image? #24

Closed
ghost opened this issue Jul 28, 2022 · 9 comments · Fixed by #61
Closed

Does this support next/future/image? #24

ghost opened this issue Jul 28, 2022 · 9 comments · Fixed by #61
Assignees

Comments

@ghost
Copy link

ghost commented Jul 28, 2022

If not, can you add support for it. https://nextjs.org/docs/api-reference/next/future/image

@Niels-IO
Copy link
Owner

Hi @robert-sperse, the new image api from Next.js is not yet supported. I will have a look at it

@milkeddy1

This comment was marked as off-topic.

@elliott-w
Copy link

Looks like next/future/image is now stable: https://nextjs.org/blog/next-12-3#image-component

@Niels-IO
Copy link
Owner

Hi @elliott-w,

Thanks for bringing awareness to their progress with the new Image component. Once they announce their next major version and more implementation details, I will reflect the changes here so that the syntax matches closely.

@elliott-w
Copy link

Forgive my ignorance, but I can't see what further implementation details you'd need than those specified in the api reference here?

@RichardLindhout
Copy link

Would be really nice if the future image is supported since it's a lot less 'hacky' than the old component with spans e.t.c.

@Niels-IO
Copy link
Owner

Hey, definitely, the new implementation is a lot simpler. I am on it to support the future image as well.

@RichardLindhout
Copy link

Changing is fairly easy
RichardLindhout@3972110
RichardLindhout@5a616c0

If you can't wait you could use my fork :)

yarn add https://github.com/RichardLindhout/next-image-export-optimizer

@Niels-IO Niels-IO self-assigned this Oct 17, 2022
This was linked to pull requests Oct 17, 2022
@Niels-IO Niels-IO removed a link to a pull request Oct 17, 2022
@Niels-IO
Copy link
Owner

I just published v0.17.0, which supports the next/future/image component.

Please let me know whether it works as expected, as I had to implement the blurry placeholder image using an SVG filter since the wrapper that had overflow:hidden set (which limits the blur to not extend over the image borders) is gone in the next/future/image component.

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 a pull request may close this issue.

4 participants