fix pdf preview
This commit is contained in:
parent
c93246a5c6
commit
0b52be6c87
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ run() {
|
||||||
mimetest() {
|
mimetest() {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
*/pdf)
|
*/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"
|
image "${CACHE}.jpg" "$w" "$h" "$x" "$y"
|
||||||
;;
|
;;
|
||||||
*/x-bzip-compressed-tar | */x-compressed-tar | */x-xz-compressed-tar) run als -- "$f" ;;
|
*/x-bzip-compressed-tar | */x-compressed-tar | */x-xz-compressed-tar) run als -- "$f" ;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue