File size: 594 Bytes
af1cb36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
# Rebuild tiff/ from raw/: darktable default development, 8-bit RGB TIFF, deflate.
# Existing frames are skipped, so an interrupted run can be restarted.
set -euo pipefail
cd "$(dirname "$0")"
cfg=$(mktemp -d); trap 'rm -rf "$cfg"' EXIT
mkdir -p tiff
for f in raw/*.CR3; do
  out=tiff/$(basename "$f" .CR3).tif
  if [ ! -e "$out" ]; then
    darktable-cli "$f" "$out" --apply-custom-presets false --core \
      --configdir "$cfg" --library :memory: \
      --conf plugins/imageio/format/tiff/bpp=8 \
      --conf plugins/imageio/format/tiff/compress=2 >/dev/null
  fi
done