From 8e3515d0ac36837845d2327cf219e8bf70d9bdbb Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 10 Jun 2013 18:11:04 +0200 Subject: [PATCH] Ranger set to use meta info instead of img2txt (which is rather useless imo). --- .config/ranger/scope.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index 70dc2f61..c5f38467 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -92,8 +92,10 @@ case "$mimetype" in # Ascii-previews of images: image/*) - img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;; - ## Alternative light preview. + # img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;; + exiftool "$path" && exit 5 + # # Use sed to remove spaces so the output fits into the narrow window + try mediainfo "$path" && { dump | trim | sed 's/ \+:/: /;'; exit 5; } || exit 1;; # if have mediainfo; then # mediainfo "$path" | sed 's/ \+:/: /;' # success && exit 5