How can i change this example from docs
---
import { Image } from 'astro:assets';
import myImage from "../assets/my_image.png"; // Image is 1600x900
---
<!-- `alt` is mandatory on the Image component -->
<Image src={myImage} alt="A description of my image." />
into dynamic like:
const { src, alt, width, height} = Astro.props;
const myImage = getImage({
src: src,
width: width,
height: height
});
i get an error:
UnsupportedImageFormat: Received unsupported format undefinedfromundefined. Currently only jpeg, jpg, png, tiff, webp, gif are supported for optimization.