Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

fff does not display image preview #194

Open
tapyu opened this issue Aug 14, 2022 · 3 comments
Open

fff does not display image preview #194

tapyu opened this issue Aug 14, 2022 · 3 comments

Comments

@tapyu
Copy link

tapyu commented Aug 14, 2022

I cannot display any image preview on fff. I've already installed w3m-img (found with the name w3m on Manjaro), xdotool, fbset, in addition to the w3m's dependencies (openssl gc ncurses gpm imlib2), but it is still not working.

OS info

 tapyu@tapyu-20qrcto1ww
 OS: Manjaro 21.3.6 Ruah
 Kernel: x86_64 Linux 5.15.60-1-MANJARO
 Uptime: 8h 53m
 Packages: 1496
 Shell: zsh 5.9
 Resolution: 3840x2160
 DE: GNOME 42.3
 WM: Mutter
 WM Theme:
 GTK Theme: Adw-dark [GTK2/3]
 Icon Theme: Papirus-Dark
 Font: Noto Sans 11
 Disk: 50G / 480G (11%)
 CPU: Intel Core i7-9750H @ 12x 4.5GHz [50.0°C]
 GPU: Quadro P620
 RAM: 4097MiB / 23678MiB
@dinesh-58
Copy link

Are you using the i keybind to view images?

@Swivelgames
Copy link

Swivelgames commented Nov 10, 2023

Might be the same issue that I'm running into as well. But for me it flashes the image on the screen briefly but immediately disappears.

My term stack is i3-wm/Alacritty/tmux/zsh/fff

@lukeflo
Copy link

lukeflo commented Mar 13, 2024

Had the same problem as @Swivelgames and run a very similar setup (alacritty, tmux/zellij, zsh, fff) on Manjaro.

The problem seems to be related to using w3m-img together witch alacritty, since the first is a big hack. Thus, I forked the fff repo and added support for previewing images with sixel and chafa.

Works very well so far if you use a terminal which supports sixel graphics. Unfortunately, regular alacritty doesn't, but there is a very well maintained fork which has sixel included. Its easy to build from source and now runs flawless with my modified version of fff! Only drawback, very big pictures can take some time to load.

Small demo:

preview-fff-sixel

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants