You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that it's telling browsers that there's a 1x format available at https:[...snip...].jpg?w=1920 and a 2x format available at https:[...snip...].jpg?w=3840, and so if your browser decides to load the 2x format it ends up upscaled to 2x the original dimensions. There's a bit of Next.js specific documentation on this here, so it seems this is expected behaviour.
The end result is that you see a "blurry" image on Netlify and a "normal" image on Vercel, unfortunately. Thanks for reporting this. We'll think about this a bit more on our end and see if we can come up with a fix. In the meantime, I believe you should be able to pass a single size to the sizes prop to work around this.
I noticed next/image's size is set differently depending on where you host your Next.js project.
I uploaded a 1 page Next.js project displaying an image on Netlify and Vercel.
On Vercel, the image's intrinsic size is 1920x1674 - https://newapp-eight-tawny.vercel.app/
On Netlify the image, is intrinsic size is 3840x3348 - https://inquisitive-sunshine-89a4b0.netlify.app/
These values can be seen in the bottom right corner of each image below.
Here is the code for both pages
The text was updated successfully, but these errors were encountered: