Coder Social home page Coder Social logo

Comments (9)

donbex avatar donbex commented on August 24, 2024 2

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.

from ctpv.

NikitaIvanovV avatar NikitaIvanovV commented on August 24, 2024 2

I've switched to Wayland recently. Just letting you know, 'cause it means that I am now more motivated to find a solution for this problem. 😅

from ctpv.

NikitaIvanovV avatar NikitaIvanovV commented on August 24, 2024 1

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.

from ctpv.

dragove avatar dragove commented on August 24, 2024 1

maybe ncls can be a great tool?

from ctpv.

NikitaIvanovV avatar NikitaIvanovV commented on August 24, 2024

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.

from ctpv.

dragove avatar dragove commented on August 24, 2024

Actually, previews do work on xwayland terminals like alacritty, kitty, urxvt, etc. But on "wayland only" terminals such as foot, I still have issues with previewing.

For wayland, you can use kitty, kitty's icat utility can help you to preview images. Also, wezterm supports iTerm2 inline images protocol. I don't know if other terminal emulators have similar things.

I tested ncls and chafa in foot terminal, ncls has better color however it is not as good as it in other terminal emulators.

from ctpv.

NikitaIvanovV avatar NikitaIvanovV commented on August 24, 2024

But on "wayland only" terminals such as foot, I still have issues with previewing.

Could you please elaborate which issues you have when using foot? Image previews are low resolution or don't work at all?

from ctpv.

NikitaIvanovV avatar NikitaIvanovV commented on August 24, 2024

Guys, I've found a potential solution: #25 (comment)

You need to:

  • Use a terminal that supports sixel format (e.g., foot)
  • Install this fork of lf that supports sixel
  • Update ctpv to the latest commit and add set autochafa option in your ctpv config.

from ctpv.

NikitaIvanovV avatar NikitaIvanovV commented on August 24, 2024

Fixed! See docs on how to setup here: https://github.com/NikitaIvanovV/ctpv/blob/0c882097f672b8d07c96f95296d904f3d5a81083/README.md#wayland

from ctpv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.