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

Image Block: Consider allowing folks to provide backup image formats #36629

Open
kjellr opened this issue Nov 18, 2021 · 1 comment
Open

Image Block: Consider allowing folks to provide backup image formats #36629

kjellr opened this issue Nov 18, 2021 · 1 comment
Labels
[Block] Image Affects the Image Block [Type] Enhancement A suggestion for improvement.

Comments

@kjellr
Copy link
Contributor

kjellr commented Nov 18, 2021

This may generally better suited to a plugin (or CDN), but raising here for discussion anyway. Should we consider an advanced control that lets folks supply an alternate fallback images?

Here's a use case:

  • A theme bundles WebP images, but would like to ensure support for older browsers.
  • That theme bundles both WebP and JPEG images in its patterns.
  • The image block serves whichever image is relevant to the end user.

If the image block outputted a picture element, it sounds like it could supply these fallbacks gracefully.

@desrosj
Copy link
Contributor

desrosj commented Nov 18, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants