Update `next/future/image` to support only `width` or only `height` (#40278)
This PR allows you to resize a statically imported image using only `width` or only `height`. For example:
```jsx
import img from './img.jpg'
<Image src={img} width="200" />
```
Previously, you had to specify both or else the image aspect ratio would not be preserved.
Showing
Please
register
or
sign in
to comment