From 174fe34e13e191ca7911fe3da0f9e9a0b238c30d Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 17 Sep 2015 04:47:01 +0300 Subject: [PATCH] preparing to use dcraw for preview generation if none exist... Signed-off-by: Alex A. Naanou --- scripts/process-archive.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/process-archive.sh b/scripts/process-archive.sh index ed36318d..2f8fa99e 100755 --- a/scripts/process-archive.sh +++ b/scripts/process-archive.sh @@ -97,7 +97,13 @@ JSON_NAME="%-:1d/${METADATA_DIR}/%f.json" # - to be more flexible... # - check speed... # - give the user more options... -# +# TODO use dcraw to extract/generate previews if we could not get any +# via exiftool +# dcraw -e $RAW +# - try and extract a preview +# - creates a file: $RAW-thumb.jpg +# dcraw -c $RAW | pnmtojpeg -quality=90 > $JPG +# - process raw and convert to jpeg (slow) # XXX need to also copy jpg originals to the preview dir (things that # were shot in jpeg in-camera)...