mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 09:19:24 +03:00
ext.d/image.sh: use exiftool in addition to exif to view image metadata.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
3a160902a1
commit
b03981f1f4
@ -12,14 +12,19 @@ do_view_action() {
|
|||||||
filetype=$1
|
filetype=$1
|
||||||
|
|
||||||
case "${filetype}" in
|
case "${filetype}" in
|
||||||
jpeg)
|
|
||||||
identify "${MC_EXT_FILENAME}"
|
|
||||||
which exif >/dev/null 2>&1 && exif "${MC_EXT_FILENAME}" 2>/dev/null
|
|
||||||
;;
|
|
||||||
xpm)
|
xpm)
|
||||||
[ -n "$DISPLAY" ] && sxpm "${MC_EXT_FILENAME}"
|
[ -n "$DISPLAY" ] && sxpm "${MC_EXT_FILENAME}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
if which exif >/dev/null 2>&1; then
|
||||||
|
exif "${MC_EXT_FILENAME}" 2>/dev/null
|
||||||
|
E=$?
|
||||||
|
else
|
||||||
|
E=1
|
||||||
|
fi
|
||||||
|
if [ $E != 0 ] && which exiftool >/dev/null 2>&1; then
|
||||||
|
exiftool "${MC_EXT_FILENAME}" 2>/dev/null
|
||||||
|
fi
|
||||||
identify "${MC_EXT_FILENAME}"
|
identify "${MC_EXT_FILENAME}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user