Skip to content

Instantly share code, notes, and snippets.

@mhx
Last active October 22, 2018 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhx/287d09cf1d20a4e5419f17a23a5a0f98 to your computer and use it in GitHub Desktop.
Save mhx/287d09cf1d20a4e5419f17a23a5a0f98 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
RAW="$1"
TIFF="${1/.dng/.tiff}"
INFO="${1/.dng/.info}"
if [ ! -f "$INFO" ]; then
dcraw -T -4 -r 1 1 1 1 -H 0 "$RAW"
identify -verbose "$TIFF" > "$INFO"
rm "$TIFF"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment