Hello!
In Next.js using :
<Image
…
width={width}
height={height}
…
/>
for all images I get this in the console :
Image with src “https://ik.imagekit.io/xxxxxxx/wibble.jpg?tr=w-640,c-at_max” has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles ‘width: “auto”’ or ‘height: “auto”’ to maintain the aspect ratio.
My width and height are calculated depending on how big I want them to display on the page and the HTML has those values for width=200 height=197.9898 etc.
What is <Image doing then to generate those warnings in the console?
Cheers,
Andy