fix pdf preview
This commit is contained in:
parent
c93246a5c6
commit
0b52be6c87
|
@ -60,7 +60,7 @@ run() {
|
|||
mimetest() {
|
||||
case "$1" in
|
||||
*/pdf)
|
||||
[ ! -f "${CACHE}.jpg" ] && run pdftoppm -jpeg -f 1 -singlefile "$f" "$CACHE"
|
||||
[ ! -f "${CACHE}.jpg" ] && cat "$f" | run pdftoppm -jpeg -f 1 -singlefile - "$CACHE"
|
||||
image "${CACHE}.jpg" "$w" "$h" "$x" "$y"
|
||||
;;
|
||||
*/x-bzip-compressed-tar | */x-compressed-tar | */x-xz-compressed-tar) run als -- "$f" ;;
|
||||
|
|
Loading…
Reference in New Issue