xxxxxxxxxx
import Image from 'next/image'
import Link from 'next/link'
<Link href={'https://google.com/'}>
<Image src={URL} alt="Description" width={150} height={150} />
</Link>
xxxxxxxxxx
Image with auto height and width. This will display actual size of image.
```js
<Image
src={selectedImage}
width={0}
height={0}
alt=""
style={{ width: "auto", height: "100%" }} // optional
/>
```
Image with fixed height and width.
```js
<div style={{ position: "relative", width: "200px", height: "279px" }}>
<Image
src={selectedImage}
fill
alt=""
style={{ objectFit: "cover" }} // As per your requirement
/>
</div>
```
Upvote if works