-
The sixel-based image preview in the wiki use the following script. That means chafa is called every time an image is previewed. Is is possible to use cache, as in the ueberzug-based preview method. #!/bin/sh
case "$(file -Lb --mime-type -- "$1")" in
image/*)
chafa -f sixel -s "$2x$3" --animate off --polite on "$1"
exit 1
;;
text/*)
cat "$1"
;;
esac |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Change |
Beta Was this translation helpful? Give feedback.
-
I use this preview script for sixel:
|
Beta Was this translation helpful? Give feedback.
Change
exit 1
toexit 0
and it will cache the sixels in memory.