Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Astro Image Asset Not Used #143

Open
jesseagleboy opened this issue Sep 4, 2024 · 2 comments
Open

Astro Image Asset Not Used #143

jesseagleboy opened this issue Sep 4, 2024 · 2 comments

Comments

@jesseagleboy
Copy link

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
Copy link
Owner

delucis commented Sep 5, 2024

#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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants