Ranger set to use meta info instead of img2txt (which is rather useless imo).
parent
aa3d2442c7
commit
8e3515d0ac
|
@ -92,8 +92,10 @@ case "$mimetype" in
|
||||||
|
|
||||||
# Ascii-previews of images:
|
# Ascii-previews of images:
|
||||||
image/*)
|
image/*)
|
||||||
img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;;
|
# img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;;
|
||||||
## Alternative light preview.
|
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
|
# if have mediainfo; then
|
||||||
# mediainfo "$path" | sed 's/ \+:/: /;'
|
# mediainfo "$path" | sed 's/ \+:/: /;'
|
||||||
# success && exit 5
|
# success && exit 5
|
||||||
|
|
Loading…
Reference in New Issue