ResourceMedia should support responsive image sizes and withs
ResourceMedia should support request attributes for responsive image sizes and withs. This is specially needed when you use a responsive media markup builder.
Also it would be nice to have some kind of generic attribute map to pass custom properties which could be consumed in media processing steps or in the markup builder, e.g. lazy=true
thanks! - it's merged
please note i did some cosmetic code cleanup and removed the explicit sort of the widths in the parseWidths method (this was not in place before in MediaComponentPropertyResolver, and i think it's not required but instead the order should be kept as defined as input parameters)
thanks. changes are made now in a new PR
PR updated to support both variants:
imageSizes and widthOptions (width + required flag), or
pictureSourceMediaFormat, pictureSourceMedia and pictureSourceWidths
yes, there is currently no syntax for defining map literals in the HTL spec, there is an open issue for it
it would be good to support the picture sources variant as well, probably with a fallback to an array of strings with some special syntax.