Ranger set to use meta info instead of img2txt (which is rather useless imo).

master
Pierre Neidhardt 2013-06-10 18:11:04 +02:00
parent aa3d2442c7
commit 8e3515d0ac
1 changed files with 4 additions and 2 deletions

View File

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