This script is really https://github.com/Naheel-Azawy/stpv. If I had known of this script, I probably would have used it rather than develop thu.sh however thu.sh has a few small advantages,
stpv thu.sh similarities,
stpv and thu.sh both GPL3 license
stpv pros,
stpv is bourne shell compatible; thu.sh uses less-portable bash,
stpv supports more input and output formats; directory, archive/tar, office etc,
stpv is small
stpv code quality is high
stpv has a great README
stpv is "battle-hardened"
thu.sh pros,
thu.sh has more and better unit tests, a test pipeline and releases; stpv basically has no tests or releases,
thu.sh is a single source file; stpv uses four separated files,
thu.sh supports iTerm2 and newer kitty interface features and as a result should be easier to embed in parent ncurses apps,
thu.sh manages "image" previews only --a "negative" and "positive", at the far end tools like https://github.com/doronbehar/pistol will process all file types.
thu.sh can generate "image" preview from epub, font and audio; stpv does not support font and returns text preview for epub and audio
thu.sh is sixel-kitty only --a "negative" and "positive"; when these formats alone are wanted, thu.sh may exist as a slightly more streamlined solution,
thu.sh does not use chafa, uberzugg, uberzuggpp, ffmpegthumbnailer or other dependencies; instead directly calls ffmpeg and imagemagick
for inputs thu.sh supports, thu.sh is "smaller" than stpv overall when considering aggregate dependency tree (this is point should include more detail, but is certain) thu.sh has a smaller and shallower dependency tree
This script is really https://github.com/Naheel-Azawy/stpv. If I had known of this script, I probably would have used it rather than develop thu.sh however thu.sh has a few small advantages,
stpv thu.sh similarities,
stpv pros,
thu.sh pros,