Last active
October 22, 2018 10:24
-
-
Save mhx/287d09cf1d20a4e5419f17a23a5a0f98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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