Glk extension proposal: images in buffer windows

Yes.

I think so, but it’s tidier to support all combinations of options.

Could a ratio of 1.0 in all of these be left out?

My test had all square images, but the default case will be the image’s natural aspect ratio, not square.

(Hm. I wonder if these ratios should be 16/16 rationals rather than 16.16 fixed-point, to avoid rounding errors for cases like 640x480.)

(Or maybe I should just allow ratio -1 to mean the image’s natural aspect ratio.)

Adding a property to set the max width as a percentage rather than just winmaxwidth: true would be pretty simple.

So like “width=600, max-width=(50% window width)”? I can see that being used, and it’s just as doable on the CSS side.

Unfortunately I can’t get a max-height to work as well

Yeah, I’m pretty sure there’s no good way to do that.

1 Like