Glk: Image scaling in buffer windows

I meant if you set the maxwidth parameter to 0, and the image’s original width is wider than the screen, in which case it should be clipped.

Quite a few posts in the previous discussion refered to them, including one you replied to :stuck_out_tongue:.

It depends on what type of image you’re using. If you’re using one like this you’d want the height to scale:

But one like this you might be okay to lose its aspect ratio:

There could also be an image which has no horizontal details, like a rainbow or a barcode, which you would want stretched.

I had been thinking of a situation in which you might want to have a border image with a original width of 600px but then apply a 80% max-width onto it, keeping the height the same in both cases. But this might be overkill. Not having special rules for imagerule_HeightFixed would certainly be simpler.

@Draconis You were one of the people originally pushing for fleuron-style support. Is a percentage of the screen width with fixed height good enough?

Hmm, that could be a good addition. Would it then be useable in the original functions too?