1
0
Fork 0

fix pdf preview

This commit is contained in:
Luca Bilke 2024-03-07 16:26:49 +01:00
parent c93246a5c6
commit 0b52be6c87
1 changed files with 1 additions and 1 deletions

View File

@ -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" ;;