This commit is contained in:
tavo 2025-07-14 09:07:09 -06:00
parent e7dc1290a7
commit e0a43bd236

View file

@ -14,7 +14,7 @@ case "$mime" in
inode/directory) inode/directory)
(cd "$file" && /usr/bin/ls -A1Fx --color --group-directories-first) ;; (cd "$file" && /usr/bin/ls -A1Fx --color --group-directories-first) ;;
image/*) image/*)
magick "$file" -geometry $((COLS*8))x$((ROWS*18)) sixel:- convert "$file" -geometry $((COLS*8))x$((ROWS*18)) sixel:-
echo ;; echo ;;
video/*) video/*)
tt="$(ffprobe -v error -show_entries format=duration -of \ tt="$(ffprobe -v error -show_entries format=duration -of \
@ -22,7 +22,7 @@ case "$mime" in
ft="5" ; ft="5" ;
if [ "$ft" -ge "${tt%%.*}" ] ; then ft="0" ; fi if [ "$ft" -ge "${tt%%.*}" ] ; then ft="0" ; fi
ffmpeg -hide_banner -loglevel error -ss "$ft" -i "$file" -vframes 1 \ ffmpeg -hide_banner -loglevel error -ss "$ft" -i "$file" -vframes 1 \
-f image2pipe - | magick - -geometry $((COLS*8))x$((ROWS*18)) sixel:- ; -f image2pipe - | convert - -geometry $((COLS*8))x$((ROWS*18)) sixel:- ;
echo ;; echo ;;
audio/*) audio/*)
rfile "$file" ;; rfile "$file" ;;