thu.sh
renders preview images to the terminal; ~1000 LOC bash
thu.sh renders images from audio, font, video, pdf, epub, svg and other files --supporting both kitty and sixel formats. It detects available commands from the system for a small dependency tree,
magick
sixel or kitten icat
display,mutool
, pdftoppm
or magick
pdf,ffmpeg
video audio,magick
font,unzip
epub,exiftool
or identify
file typethu.sh /path/to/image.png
thu.sh /path/to/font.ttf
thu.sh /path/to/video.mp4
# display image is placed to fit optional top, left, width and height params
thu.sh /path/to/music.flac $top $left $width $height
thu.sh /path/to/image.svg 0 0 600 600
thu.sh /path/to/book.pdf
thu.sh /path/to/book.epub
[!WARNING] vifm image preview no longer working https://github.com/vifm/vifm/issues/731#issuecomment-2025267217
Add sixel image preview to vifm file manager. Instructions at the wiki.