Only extract raw when necessary

This commit is contained in:
sh+git@codevoid.de 2019-10-27 20:13:26 +00:00
parent 8fc6320417
commit 706fdf5e10
1 changed files with 6 additions and 3 deletions

View File

@ -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