Going back to these:
The first one will need to be converted to an aspect ratio for the final CSS (with a default maxwidth=100%).
The second one is the fixed height image, maxwidth is not used. This is the only one that would result in a height actually being set.
The third one is still not needed (it could just be sent in the first format), but would now be width:W, aspectwidth:AW, aspectheight:AH
.
The fourth would now be widthratio:R, aspectwidth:AW, aspectheight:AH
.
Will aspectwidth
and aspectheight
be integers or floats? imagerule_AspectRatio
might result in a non-integer ratio, so floats are probably needed.
We’ll need a new protocol support
flag.