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

Serve up images as srcsets #23

Open
arun-is opened this issue Sep 29, 2022 · 1 comment
Open

Serve up images as srcsets #23

arun-is opened this issue Sep 29, 2022 · 1 comment

Comments

@arun-is
Copy link
Collaborator

arun-is commented Sep 29, 2022

Currently, all images are served in their original format and size. To improve load times and also viewing across different device types, we should serve up images in a variety of sizes and formats (jpg, avif, webp).

@arun-is
Copy link
Collaborator Author

arun-is commented Sep 29, 2022

We'd like to use Astro's <Picture /> component..

Unfortunately, looks like Astro still doesn't support srcsets with @2x and @3x images. This is needed since images served up with their current implementation look blurry. More here:

withastro/astro#4045

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

1 participant