delucis / astro-embed

Low-JavaScript embed components for Astro websites
https://astro-embed.netlify.app
MIT License
213 stars 35 forks source link

Astro Image Asset Not Used #143

Open jesseagleboy opened 2 months ago

jesseagleboy commented 2 months ago

I'm a little confused as to why the source file for the Preview component is using a standard img tag rather than integrate the Astro Image tag?

image
delucis commented 1 month ago

111 started some work around this although unfortunately haven’t had time to look at it yet.

The image source in this case is remote (a URL provided by the site the preview link is for), so in any case Astro’s <Image> wouldn’t optimise without additional configuration (see “Remote Images” in the Astro Docs).

jesseagleboy commented 1 month ago

Thanks for following up. I realized that it wouldn't have mattered after I made this post. I switched Astro's Image handler to Unpic's service so I noticed a change in the image tags.