Created
October 22, 2018 10:20
-
-
Save mhx/7e068d2bb8b2efbd5fdf757dbcb41d07 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