* Simple Justified Gallery
       
   URI git clone git://git.codevoid.de/mkpicindex
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit c5f1209d1eae2d3c33df51b69bdd76e6330f9186
   DIR parent 4ba7f15ad7b91f09d1fb57f690413289835b6eb2
   URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de>
       Date:   Sun, 27 Oct 2019 21:13:26 +0100
       
       Only extract raw when necessary
       
       Diffstat:
         M mkpicindex-static.sh                |       9 ++++++---
       
       1 file changed, 6 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/mkpicindex-static.sh b/mkpicindex-static.sh
       @@ -90,9 +90,12 @@ thread_check() {
        }
        # EXTACT CAMERA IMAGE FROM RAW
        convert_raw() {
       -  F="$1" # raw image
       -  dcraw -e -c "$F" > "${F%%.*}_preview.jpg" # DCR
       -  # XXX Dcraw may export a PPM file.
       +    # XXX dcraw may export a PPM file.
       +    F="$1" # raw image
       +    if ! [ -f "${F%%.*}_preview.jpg" ]; then
       +        dcraw -e -c "$F" > "${F%%.*}_preview.jpg"
       +        console "Raw Conversion: ${F%%.*}_preview.jpg"
       +    fi
        }
        
        # CREATE THUMBNAIL