ctpv icon indicating copy to clipboard operation
ctpv copied to clipboard

Better image previews on Wayland

Open brccabral opened this issue 1 year ago • 4 comments

Hi, lf on wayland uses chafa not ueberzug, thus the preview has low resolution. Changing the login to Xorg it seems to use ueberzug and preview has good resolution. But I don't know what software is causing the issue. Where is the problem? On ueberzug, on wayland, on lf or on ctpv?

brccabral avatar Sep 15 '22 07:09 brccabral

Ueberzug is Xorg only, it's not supported on Wayland. You can try using Kitty terminal, it supports normal image rendering on Wayland. I know that there are some protocols that other terminals use for rendering images on Wayland, I will look into how to implement those into ctpv.

NikitaIvanovV avatar Sep 15 '22 12:09 NikitaIvanovV

I know that there are some protocols that other terminals use for rendering images on Wayland, I will look into how to implement those into ctpv.

If it helps, Wezterm supports the iTerm image protocol and comes with a an example renderer utility like icat.

donbex avatar Sep 25 '22 23:09 donbex

maybe ncls can be a great tool?

dragove avatar Oct 03 '22 05:10 dragove

Many terminals seem to support Sixel format but lf, for which ctpv was written, doesn't support it.

There was an attempt to add support for Sixel to lf but it didn't work out.

NikitaIvanovV avatar Oct 10 '22 21:10 NikitaIvanovV

chafa is the actual previewer that actually generates 240x240 thumbs. ueberzug's preview isn't really a preview, rather it's a full blown image viewer inside terminal. Thus much slower than chafa. I prefer chafa more than ueberzug, as previews are only intended to merely judge a picture without actually opening it. gtk & qt generate thumbnails the same way. But you don't notice the blockyness due to the icons being smaller.

asklow avatar Nov 09 '22 09:11 asklow