GithubHelp home page GithubHelp logo

Image support in general about sclack HOT 3 OPEN

haskellcamargo avatar haskellcamargo commented on May 22, 2024 3
Image support in general

from sclack.

Comments (3)

im-n1 avatar im-n1 commented on May 22, 2024 5

Here is an example:

image

from sclack.

duynguyenhoang avatar duynguyenhoang commented on May 22, 2024

Let me consider it. Thank you for your suggestion

from sclack.

im-n1 avatar im-n1 commented on May 22, 2024

I was kinda curious so I have advanced a bit. I'm in touch with lead Ranger developer and I asked him for help. This is what he replied:

Hi Pavel,

Image rendering in the terminal is a messy subject and is generally
unstable, but perhaps still worth trying ;)

ranger supports multiple methods for rendering images, w3mimgdisplay is
one of them.  Another promising option is the recently started project
"Ueberzug" (https://github.com/seebye/ueberzug)

Both programs are standalone executables that read their commands
through STDIN.  The format of the command differs between the programs. 
For ueberzug it's a simple JSON object as documented in ueberzug's
README.md file.  Should look like this:

echo '{"action": "add", "identifier": "xyz", "x": 0, "y": 0, "path":
"/some/path/some_image.jpg"}' | ueberzug layer

w3mimgdisplay's format is not well documented, last time I checked.  You
can get some inspiration on how to use it by checking
https://github.com/ranger/ranger/blob/master/ranger/ext/img_display.py ,
at the very end of the method "_generate_w3m_input".  It's some string
starting with "0;1;x-pos,y-pos,width,height,...". Perhaps you can find
the full specifications with some googling.

Good luck with your endeavor,
Roman

I guess we can try to give it a chance. Hm? ;)

from sclack.

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.