Ticket #3568: mc-3568-fix-image-view-info-for-JPEG.patch

File mc-3568-fix-image-view-info-for-JPEG.patch, 807 bytes (added by and, 9 years ago)
  • misc/ext.d/image.sh

    From a512225b8942a8eba06ec7d6937e92ce470a3459 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Thu, 31 Dec 2015 15:15:12 +0000
    Subject: [PATCH] fix image view info for JPEG
    
    ---
     misc/ext.d/image.sh | 6 ++----
     1 file changed, 2 insertions(+), 4 deletions(-)
    
    diff --git a/misc/ext.d/image.sh b/misc/ext.d/image.sh
    index 6535554..03c4faf 100755
    a b do_view_action() { 
    1313 
    1414    case "${filetype}" in 
    1515    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}" 
     17        which exif >/dev/null 2>&1 && exif "${MC_EXT_FILENAME}" 2>/dev/null 
    2018        ;; 
    2119    xpm) 
    2220        sxpm "${MC_EXT_FILENAME}"