How does next image set src?
Unanswered
Gull-billed Tern posted this in #help-forum
Gull-billed TernOP
I have the Next Image component
In the network in devtools I can see that an image with a similar width (800px) is downloaded but then in html in src is set the image with the greatest width available in srcset. How is this happening?
<Image
alt={title}
src={src}
style={{
height: "100%",
maxWidth: "auto",
}}
width={800}
height={600}
/>In the network in devtools I can see that an image with a similar width (800px) is downloaded but then in html in src is set the image with the greatest width available in srcset. How is this happening?
<img ...
width="800" height="600"
srcset="linkToImg;w=828&q=75 1x,
linkToImg;w=1920&q=75 2x"
src="linkToImg;w=1920&q=75" ...>