Only extract raw when necessary
This commit is contained in:
parent
8fc6320417
commit
706fdf5e10
@ -90,9 +90,12 @@ thread_check() {
|
|||||||
}
|
}
|
||||||
# EXTACT CAMERA IMAGE FROM RAW
|
# EXTACT CAMERA IMAGE FROM RAW
|
||||||
convert_raw() {
|
convert_raw() {
|
||||||
F="$1" # raw image
|
# XXX dcraw may export a PPM file.
|
||||||
dcraw -e -c "$F" > "${F%%.*}_preview.jpg" # DCR
|
F="$1" # raw image
|
||||||
# XXX Dcraw may export a PPM file.
|
if ! [ -f "${F%%.*}_preview.jpg" ]; then
|
||||||
|
dcraw -e -c "$F" > "${F%%.*}_preview.jpg"
|
||||||
|
console "Raw Conversion: ${F%%.*}_preview.jpg"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# CREATE THUMBNAIL
|
# CREATE THUMBNAIL
|
||||||
|
Loading…
Reference in New Issue
Block a user