I am currently using Next.js and have noticed that my images appear slightly blurry when utilizing Next/Image.
Below is a snippet of my code:
<img src={url} width={articleWidth} />
<Image
className="text-center"
src={url}
alt={alt}
width={width}
height={height}
/>
Here is a visual comparison of the images (it may be challenging to discern, but the version with Next/Image
appears blurrier on my screen).
https://i.stack.imgur.com/KGIdn.png
Additionally, I observed a few other details:
- The image using the
img
tag had an intrinsic size of2016 x 1663
, while the one usingNext/Image
had a size of750x615
How can I ensure that Next/Image
displays images as sharp as my standard img
component?