leptos-image icon indicating copy to clipboard operation
leptos-image copied to clipboard

Support for <picture> element

Open s1n7ax opened this issue 1 year ago • 1 comments

Picture tag adds different sources for different media such as loading low quality image on mobile & high quality one in PC. I believe, currently only <img> is supported

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture

s1n7ax avatar May 15 '24 12:05 s1n7ax

I will look into this. Unsure if the maintainer is still active, but I think I can give a stab at it.

The type attribute is interesting to me. I will also look into adding an ImageType enum for Avif, WebP, JPEG, and PNG with a client side validation for avif to see if the Browser support it, if not default to Webp.

SoapyDev avatar Oct 11 '24 03:10 SoapyDev