Skip to content

astro

getImage() must be used on the server.

Astro

getImage() must be used on the server.

getImage() must be used on the server.

const optimizedImage = await getImage({ src: myImage, width: 300 });


**See Also:**
-  [Images](/en/guides/images/)
-  [`getImage()`](/en/reference/modules/astro-assets/#getimage)