wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Keep aspect ratio when renderring images by kitty protocol

Open CarterLi opened this issue 9 months ago • 0 comments

What Operating System(s) are you seeing this problem on?

macOS

Which Wayland compositor or X11 Window manager(s) are you using?

N/A

WezTerm version

0240509-164806-814857cd

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

According to the official kitty doc:

If only one of either r or c is specified, the other one is computed based on the source image aspect ratio, so that the image is displayed without distortion.

But it doesn't work

To Reproduce

echo -e "\e_GX=1,a=T,f=100,t=f,c=50;$(echo -n ~/Desktop/test.png | base64)\e\\"

image

Configuration

no config

Expected Behavior

The aspect ratio should be kept

Logs

No response

Anything else?

This feature didn't work before in Kitty, but it was fixed: https://github.com/kovidgoyal/kitty/issues/7380

Aspect ratio is kept when using iterm protocol, but it doesn't work with kitty protocol

CarterLi avatar May 10 '24 06:05 CarterLi