Ticket #4490: webp-avif-ext-support.patch

File webp-avif-ext-support.patch, 885 bytes (added by eugenesan, 4 months ago)

Slightly improved .WEBP support along AVIF

  • misc/ext.d/image.sh

    diff --git a/misc/ext.d/image.sh b/misc/ext.d/image.sh
    index 04307e01b..5a928a23d 100755
    a b do_view_action() { 
    1212    filetype=$1 
    1313 
    1414    case "${filetype}" in 
    15     jpeg) 
     15    jpeg | image) 
    1616        identify "${MC_EXT_FILENAME}" 
    1717        which exif >/dev/null 2>&1 && exif "${MC_EXT_FILENAME}" 2>/dev/null 
    1818        ;; 
  • misc/mc.ext.ini.in

    diff --git a/misc/mc.ext.ini.in b/misc/mc.ext.ini.in
    index 3d961a95c..6acf8481b 100644
    a b Open=@EXTHELPERSDIR@/image.sh open svg 
    578578 
    579579[webp] 
    580580Shell=.webp 
    581 Open=@EXTHELPERSDIR@/image.sh open webp 
     581View=%view{ascii} @EXTHELPERSDIR@/image.sh view image 
     582Open=@EXTHELPERSDIR@/image.sh open image 
     583 
     584[avif] 
     585Shell=.avif 
     586View=%view{ascii} @EXTHELPERSDIR@/image.sh view image 
     587Open=@EXTHELPERSDIR@/image.sh open image 
    582588 
    583589 
    584590### Sound files ###