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
I think the NextImage component not properly optimizing images because next/image has been set to layout='responsive'. If I look in the components.tsx page there is a usage example, but when the image is loaded it is not actually optimized
it should be w=180 but because layout='responsive' it uses screen width/parent container size as image width which is w=1920 in my case. I think just leaving it as default layout or removing the layout prop and fixed image size will be working fine
The text was updated successfully, but these errors were encountered:
I think the
NextImage
component not properly optimizing images becausenext/image
has been set tolayout='responsive'
. If I look in thecomponents.tsx
page there is a usage example, but when the image is loaded it is not actually optimizedproduced image URL: https://tsnext-tw.thcl.dev/_next/image?url=%2Ffavicon%2Fapple-icon-180x180.png&w=1920&q=75
it should be
w=180
but becauselayout='responsive'
it uses screen width/parent container size as image width which isw=1920
in my case. I think just leaving it as default layout or removing the layout prop and fixed image size will be working fineThe text was updated successfully, but these errors were encountered: