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

next-images vs next/Image #85

Open
gascenciom1998 opened this issue Mar 28, 2022 · 5 comments
Open

next-images vs next/Image #85

gascenciom1998 opened this issue Mar 28, 2022 · 5 comments

Comments

@gascenciom1998
Copy link

gascenciom1998 commented Mar 28, 2022

Can someone help me understand the tradeoffs between the two? Is next-images a superset of next/Image in terms of features?

@leerob
Copy link

leerob commented Apr 7, 2022

Hey! Heads up that importing local images is now built-into next/image directly.

https://nextjs.org/docs/basic-features/image-optimization#local-images

@eldoy
Copy link

eldoy commented Jun 17, 2022

Vanilla HTML: <img src="/img/logo.png">, no NextJS needed. Please, for the sake of humanity, stop using React and Next.

@liquidautumn
Copy link

Vanilla HTML: <img src="/img/logo.png">, no NextJS needed. Please, for the sake of humanity, stop using React and Next.

Now do ISR and image optimization with plain HTML.

@acrabb
Copy link

acrabb commented Sep 20, 2022

Looks like next/image still doesn't work when using Expo + Next.js ?

So next-images might still be needed...but then issue #84 happens

@zargold
Copy link

zargold commented May 8, 2023

The problem is that next-images has better backwards/cross-compatibility with other frameworks/past projects. Eg. for me I have some stuff working on legacy react that uses <img src="/something.jpg" /> and that is cross-compatible with my old stuff and next.js stuff (as long as I use next-images) but not if I switch.
So... yeah been getting a lot of issues upgrading from 12.2.x => 12.3.4 seemingly related to when nextConfig.serverRuntimeConfig gets defined in the later versions.

Would love for next-images to be fixed for later versions of next so I don't have to migrate 100% of legacy-react pages to Next.js just to use next/image.

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

6 participants