Viewing images in the terminal

I have a large number of image files i need to manually review. In the past i’ve used fbi -e from the terminal to give me a quick way to scroll through image files and delete unnecessary ones with Shift+d

I updated the base template with sudo dnf install fbi then restarted my app qube. Running the command gives me the error message using "Noto Sans Mono-16", pixelsize=16.67 file=/usr/share/fonts/google-noto-vf/NotoSansMono[wght].ttf trying drm: /dev/dri/card0 ... drm: open /dev/dri/card0: No such file or directory trying fbdev: /dev/fb0 ... open /dev/fb0: No such file or directory

I assume i need to work some magic from dom0 to give the app qube a /dev/fb0 to access. Any thoughts on how to go about that?

Much easier is to use fim - available in Debian and Fedora 22. It’s a
rewrite of fbi and will work out of the box in Qubes.
Keyboard control of image viewing and processing.
One difference is that you do not directly delete images - instead you
“mark” them, and can then review marked files, and unmark as necessary.
If you start with fim * > list, when you close fim, names of all marked
files are written in list, and you can then move or delete them as
you will.

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

1 Like

Thank you, I’ll give that tool a try

fim seems to work, but I’m failing to get any files to mark

Works for me. How are you marking? Do you see message in status bar at
bottom?

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

I am not seeing any messages.
[user@vault no_timestamp]$ fim --dump-default-fimrc | grep mark alias 'toggleLimitMarked' '__pre_limit_fileindex=_fileindex;_limit_mode=1-_limit_mode; if(_limit_mode==1){limit "!";} else { limit; } if(_filelistlen<1){_limit_mode=0;limit;goto __pre_limit_fileindex;} i:fresh=1;redisplay; ' "toggle between limiting file list to the marked files and the full list"; bind 'C-m' "list 'mark'"; bind 'u' "list 'unmark'"; bind 'Enter' "list 'mark';goto _lastgotodirection";

searched for ‘marked’ in the bindings and have tried using ‘Enter’ as well as C-m but my output file remains empty.

What are you doing after you envoke fim to mark files?

For me , fim on debian-13:

  1. fim * > list
    2 Step through images with n, p
  2. Mark images of interest with “Enter”
  3. :l "!" will show only the marked files. You can review and use u to unmark as you will.
  4. Quit

list then contains paths to images that have been marked.

ok, so the marked files are in a form of buffer and not being appended to a file on my system I generate with > filename

When i hit : I do not get any visual indicators that I’ve change mode (I would assume the intended operation is similar to vim?) but after typing the command in full and hitting enter I do get text overlapping my image field that shows files have been marked. Does this sound like normal behavior?

When I use : the status bar clears and is open to input.

If you do not redirect output at close you will see details of marked
files, but better to redirect for usable file.

The documentation may help.

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.