From abd25f36149e2b8f688e7048f03059c4a7bfbb90 Mon Sep 17 00:00:00 2001
From: Frank Dietrich <ablesoft@gmx.de>
Date: Sun, 22 Nov 2015 11:53:29 +0100
Subject: [PATCH] fix image view for JPEG
---
misc/ext.d/image.sh | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/misc/ext.d/image.sh b/misc/ext.d/image.sh
index 6535554..d03a1ee 100755
a
|
b
|
do_view_action() { |
13 | 13 | |
14 | 14 | case "${filetype}" in |
15 | 15 | jpeg) |
16 | | which exif >/dev/null 2>&1 && \ |
17 | | { |
18 | | identify "${MC_EXT_FILENAME}"; exif "${MC_EXT_FILENAME}" 2>/dev/null |
19 | | } |
| 16 | identify "${MC_EXT_FILENAME}" 2>/dev/null |
| 17 | type -P exif >/dev/null 2>&1 |
| 18 | if [ $? -ne 0 ]; then |
| 19 | exif "${MC_EXT_FILENAME}" 2>/dev/null |
| 20 | fi |
20 | 21 | ;; |
21 | 22 | xpm) |
22 | 23 | sxpm "${MC_EXT_FILENAME}" |