diff options
Diffstat (limited to '.config')
-rwxr-xr-x | .config/ranger/scope.sh | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index 9edf5b9..f9d0dc2 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -102,19 +102,19 @@ handle_image() { exit 7;; # Video - # video/*) - # # Thumbnail - # ffmpegthumbnailer -i "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" -s 0 && exit 6 - # exit 1;; + video/*) + # Thumbnail + ffmpegthumbnailer -i "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" -s 0 && exit 6 + exit 1;; # PDF - # application/pdf) - # pdftoppm -f 1 -l 1 \ - # -scale-to-x 1920 \ - # -scale-to-y -1 \ - # -singlefile \ - # -jpeg -tiffcompression jpeg \ - # -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \ - # && exit 6 || exit 1;; + application/pdf) + pdftoppm -f 1 -l 1 \ + -scale-to-x 1920 \ + -scale-to-y -1 \ + -singlefile \ + -jpeg -tiffcompression jpeg \ + -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \ + && exit 6 || exit 1;; # Preview archives using the first image inside. # (Very useful for comic book collections for example.) |