ixartz / Next-js-Boilerplate

🚀🎉📚 Boilerplate and Starter for Next.js 14+ with App Router and Page Router support, Tailwind CSS 3.4 and TypeScript ⚡️ Made with developer experience first: Next.js + TypeScript + ESLint + Prettier + Drizzle ORM + Husky + Lint-Staged + Vitest + Testing Library + Playwright + Storybook + Commitlint + VSCode + Netlify + PostCSS + Tailwind CSS ✨

Home Page:https://nextjs-boilerplate.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image quality

KesleyDavid opened this issue · comments

Looking at the example link, the image looks great and of high quality, but when I download the code, the image is of terrible quality.

Does anyone know what it could be?
Am I missing something when I do my deployment?

https://creativedesignsguru.com/demo/Nextjs-Boilerplate/
Screenshot from 2023-11-07 18-17-24

localhost
Screenshot from 2023-11-07 18-17-34

The old image is not optimized, this is why the image quality is better. The second image is optimized by Next.js/image component, this is why the quality is lower.

I didn't take the time to improve the quality for the second one, I just use the default configuration. It should have some configuration to improve the image quality of the second image.

I'm totally open to suggestion to improve the second image.

The old image is not optimized, this is why the image quality is better. The second image is optimized by Next.js/image component, this is why the quality is lower.

I didn't take the time to improve the quality for the second one, I just use the default configuration. It should have some configuration to improve the image quality of the second image.

I'm totally open to suggestion to improve the second image.

Thank you for the explanation.

I was researching, and found a way in the documentation, to use the image component and also maintain quality, using quality={100} (but it's still a little blurry) and also unoptimized (the image is in complete quality))

Maybe it would be good to add it to the code, so users like me can understand if they want it optimized or not, what do you think?

If you prefer, I can create a PR with the modification

@KesleyDavid Thank you for your research, I'm totally open to increase the image quality and open to PR for modification.