Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

w3m images (ranger) display in terminal #4544

Closed
zyy1998 opened this issue Feb 12, 2020 · 5 comments
Closed

w3m images (ranger) display in terminal #4544

zyy1998 opened this issue Feb 12, 2020 · 5 comments
Assignees
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@zyy1998
Copy link

zyy1998 commented Feb 12, 2020

Display images in terminal

I'm trying to use WSL to substitute some functions on windows, it performed well in some text-only functions. But I'm also want to use ranger ( a linux terminal file explorer ) to replace totalcommander which I often used or even windows file explorer, ranger satisfies my content in many occasions but for image preview.

w3m is a terminal web browser that could be used to display images in terminal, and it can also be used by ranger. However, w3m didn't work on this terminal.

There are many other terminals like iTerm2urxvt and alacritty could display images. As a terminal under windows, I think it's more necessary to support this feature.

Proposed technical implementation details

I don't know how does w3m works, but I have noticed that the terminal could be changed the background pictures, so if you want to render some images, you can just change the specific area of the background of the terminal. Actually it's how urxvt handled it.

Of course, you don't have to support w3m, just do something that could display images correctly and the method could be called by other apps like ranger, that's all what I need.

Thanks! ( And pardon for my poor English😁 )

You can find more information here: https://github.com/ranger/ranger/wiki/Image-Previews

@zyy1998 zyy1998 added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Feb 12, 2020
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Feb 12, 2020
@jantari
Copy link
Contributor

jantari commented Feb 12, 2020

Have you tried with überzug ? It's the recommended way to get image previews in ranger, w3m is always wonky even when you do get it to work on native Linux.

Also, if you just want something ranger-like on Windows you don't have to use WSL, you can just use lf which runs on Windows (and Linux) natively and is much faster too. But it has no option to do image previews.

EDIT: I couldn't curb my curiosity so tried ueberzug on WSL2 myself and ran into a problem I could not fix: https://github.com/seebye/ueberzug/issues/87 let me know if you can figure it out

@DHowett-MSFT DHowett-MSFT removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Feb 22, 2020
@DHowett-MSFT DHowett-MSFT self-assigned this Feb 22, 2020
@akho
Copy link

akho commented May 9, 2020

w3m and überzug both rely on x11 to draw an image in a subwindow. It is highly unlikely that either of the two can be made to work in Terminal without also modifying the tools themselves.

Having some way to draw images in terminal would be very nice though. Kitty, for example, implements its own thing (icat), and integrates well with ranger. Would be lovely to have that in Terminal.

Sixel or whatever iTerm2 does are also nice, I think Sixel support is in the pipeline? Not supported by ranger yet, though.

@j4james
Copy link
Collaborator

j4james commented May 9, 2020

FYI, there are separate issues for Sixel (#448), and the other proprietary image formats (#5746).

@DHowett-MSFT
Copy link
Contributor

Thanks for the request here. I'm going to make /dup #5746 the master issue for graphics-in-the-terminal and copy your comments over there.

At the end of the day, if other terminals are doing this in a standards-compliant, secure and portable way... we should consider following suit.

@ghost
Copy link

ghost commented May 11, 2020

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost closed this as completed May 11, 2020
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Tag-Fix Doesn't match tag requirements labels May 11, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

5 participants