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

Allow managing content type negociation with picture #73

Open
nhoizey opened this issue Sep 2, 2020 · 0 comments
Open

Allow managing content type negociation with picture #73

nhoizey opened this issue Sep 2, 2020 · 0 comments

Comments

@nhoizey
Copy link
Owner

nhoizey commented Sep 2, 2020

Not everyone is using a backend service able to provide best format (JPEG, WebP, AVIF…) depending on the browser.

Allow using <picture> to provide different file types:

<picture>
  <source
    type="image/webp"
    srcset="image.webp 1024w, …">
  <img
    src="image.jpg"
    srcset="image.jpg 1024w, …"
    sizes=""
    alt="Alt Text!">
</picture>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant