From bcd141a5ba3529f4d3f1118ab090daff3b40dc53 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 13 Mar 2017 23:11:25 +0100 Subject: Better preview for image -like file --- scope.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scope.sh b/scope.sh index da7168e..c4cf37d 100755 --- a/scope.sh +++ b/scope.sh @@ -55,6 +55,10 @@ if [ "$preview_images" = "True" ]; then # Image previews for image files. w3mimgdisplay will be called for all # image files (unless overriden as above), but might fail for # unsupported types. + application/pdf) + pdftoppm -f 1 -singlefile -jpeg "$path" .thbn && mv .thbn.jpg "$cached" && exit 6 || exit 1;; + image/svg+xml) + rsvg-convert "$path" -d 1 -p 2 > "$cached" && exit 6 ||exit 1;; image/*) exit 7;; # Image preview for video, disabled by default.: -- cgit v1.2.3