You are not logged in.

#1 2019-12-20 21:02:07

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,966
Website

Image view in xterm/urxvt (zebra)

I pushed this fairly far (still missing some features) and it's getting interesting. It uses w3m-img to display images in supported terminals (urxvt & xterm, does not work with lxterminal), similar to ranger.

Config, perhaps you will need to adjust variables named

FONTH=14 # 14 Size of one terminal row
FONTW=8  # 8 Size of one terminal column

also slideshow time in seconds

slidetime="1"

Usage

zebra --help
zebra *.png
zebra -q some.png # show and quit

pBen3tDb.jpg
more.

Last edited by brontosaurusrex (2019-12-21 12:01:32)

Offline

#2 2019-12-20 22:25:29

beaker
Member
Registered: 2016-03-06
Posts: 140

Re: Image view in xterm/urxvt (zebra)

Not sure what direction you are wanting to go with this but are you aware of ueberzug as an alternative to w3mimgdisplay. Perhaps it offers you more...

https://github.com/seebye/ueberzug

Offline

#3 2019-12-21 07:58:09

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,966
Website

Re: Image view in xterm/urxvt (zebra)

@beaker, I wasn't (or I forgot about it),  thanks for sharing. p.s. Direction is basic, fastest possible image viewer, wallpaper setter.

edit, quick Überzug test:
- Überzug is extremly interesting, but for now over my head.
- fzfimg.sh is what i tested briefly and making '[scaler]=contain' in line 110 makes is even better. (It doesn't seem to clean the window on exit, or i'am missing something)
- Images with alpha are not supported (or i don't know how to display them correctly)

BmKbxDOb.jpg

Last edited by brontosaurusrex (2019-12-21 12:25:23)

Offline

#4 2019-12-22 01:40:25

hhh
Meep!
Registered: 2015-09-17
Posts: 8,936
Website

Re: Image view in xterm/urxvt (zebra)

I don't know what you guys are discussing, I'm just here for the cute doggo pics.

Offline

#5 2019-12-22 07:05:26

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,966
Website

Re: Image view in xterm/urxvt (zebra)

Not just any dog, it is the original, noble meme dog https://i.imgur.com/V1D0onr.gif .

Offline

Board footer

Powered by FluxBB