From 4650ebe641eb8615522b2f1239ad1abc9d9d8acf Mon Sep 17 00:00:00 2001 From: druckdev Date: Tue, 13 Jul 2021 17:01:54 +0200 Subject: [PATCH] bin:raw2preview: Add support of TIFFs I know that TIFFs are not strictly speaking raw files. But I don't bother remaining the script. --- .local/bin/raw2preview | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.local/bin/raw2preview b/.local/bin/raw2preview index e9cb747..90de3af 100755 --- a/.local/bin/raw2preview +++ b/.local/bin/raw2preview @@ -34,6 +34,10 @@ for file; do if [[ $mime = image/x-canon-cr2 ]]; then extractRAW "$file" + elif [[ $mime = image/tiff ]]; then + prev="./JPGs/${file%.*}.JPG" + [[ -e "$prev" ]] || convert "$file" "$prev" + elif [[ "$(head -1 "$file")" = "#Geeqie collection" ]]; then while read line; do extractRAW "$file"