Closed milanvogels closed 1 month ago
Hi. This could probably be done. You are welcome to try solving it yourself. You can fork the PicureRenderer project (https://github.com/ErikHen/PictureRenderer) and make a pull request. I'm happy do assist in any way. You can probably also solve this by render two different picture elements with different picture profiles, and show one for mobile sized screens, and one for desktop size.
Closing this. Planning to remove multi-image support in next major version.
Feature request: I would like to use different aspectratios or fixedheight per mediaquery when using the
picture
element for art-direction https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#art_directionFor example if you want to have a portrait crop for mobile and a landscape crop for larget screens.
Example:
with
MultiImageMediaConditions
we can define widths for multiple media conditions, but we cant assign different heights or aspectratios.