ephes / wagtail_srcset

New template tag for sharp wagtail images on high pixel density devices
Other
15 stars 1 forks source link

Support Picture Element #6

Open ephes opened 1 year ago

ephes commented 1 year ago

After wagtail now supports different image formats, it would make a lot of sense to just render <picture>-elements instead of only the srcset attribute of <img>-elements. Don't know how difficult this will be. We'll see 😇.

thibaudcolas commented 8 months ago

Hi @ephes, you might be aware but Wagtail now ships with a <picture> implementation built-in: https://docs.wagtail.org/en/stable/releases/5.2.html#responsive-multi-format-images-with-the-picture-tag

There are lots of possible improvements we’d like to make to this implementation, so any feedback is very welcome if there are things your package does that aren’t possible with that one.

And for this package, there’s lots of this work you could reuse if you wanted to:

All three are private APIs currently but could be made public if there’s a need.