ctpv
ctpv copied to clipboard
Better image previews on Wayland
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?
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.
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.
maybe ncls can be a great tool?
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.
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.