From: Yuri D'E. <wa...@th...> - 2018-01-20 14:15:01
|
Hi everyone, I noticed mlterm supports the iterm2's OSC1337 inline images, which I actually prefer to sixel's due to a number of reasons. However, the preserveAspectRatio attribute is not currently supported. >From the iterm docs: preserveAspectRatio: If set to 0, then the image's inherent aspect ratio will not be respected; otherwise, it will fill the specified width and height as much as possible without stretching. Defaults to 1. I modified ranger (http://ranger.nongnu.org/), which supports inline previews via a number of methods to use OSC1337 on mlterm as opposed to sixel. This doesn't require image recoding on the ranger side, which is a big plus. The image is currently filled inside the ranger's preview area, but preserveAspectRatio is needed to correctly display the image in this case. Would it be possible to implement also this attribute? |