Looking at the doc for the new assets pipeline (https://docs.astro.build/en/guides/assets/#image--astroassets), it looks like one can use the <Image /> component without providing an height or width (they'd be inferred from the resolution of the image file). However, this doesn't work for me as I'll get the following TS error :
Type '{ src: string; alt: string; }' is not assignable to type 'IntrinsicAttributes & Props'.
Type '{ src: string; alt: string; }' is not assignable to type 'IntrinsicAttributes & Simplify<RemoteImageProps<ImgAttributes>>'.
Type '{ src: string; alt: string; }' is missing the following properties from type 'Simplify<RemoteImageProps<ImgAttributes>>': width, height
My code includes :
import { Image } from 'astro:assets';
import logo from '../assets/logo.png';
and
<Image src={logo} alt="logo" />
Any idea how to go past this ?