Coder Social home page Coder Social logo

Comments (9)

Niels-IO avatar Niels-IO commented on July 29, 2024 1

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

from next-image-export-optimizer.

Niels-IO avatar Niels-IO commented on July 29, 2024 1

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

from next-image-export-optimizer.

milkeddy1 avatar milkeddy1 commented on July 29, 2024

Hi, I use the component ExportImage but it come to an error says "filePath.split is not a function", how do i fix it?

from next-image-export-optimizer.

elliott-w avatar elliott-w commented on July 29, 2024

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

from next-image-export-optimizer.

Niels-IO avatar Niels-IO commented on July 29, 2024

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.

from next-image-export-optimizer.

elliott-w avatar elliott-w commented on July 29, 2024

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

from next-image-export-optimizer.

RichardLindhout avatar RichardLindhout commented on July 29, 2024

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.

from next-image-export-optimizer.

RichardLindhout avatar RichardLindhout commented on July 29, 2024

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

from next-image-export-optimizer.

Niels-IO avatar Niels-IO commented on July 29, 2024

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.

from next-image-export-optimizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.