Created
August 29, 2015 02:05
-
-
Save matthallamew/767fc316c519422fb42e to your computer and use it in GitHub Desktop.
Convert RAW images to JPG.
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 | |
for i in *.CR2; | |
do | |
fil=${i%%.CR2} | |
dcraw -v -o 2 -c -q 0 -w -H 8 -b 4 $i | cjpeg -quality 75 > $fil.jpg; | |
convert $fil.jpg -resize 1280x1024 $fil.jpg; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment