Created
September 13, 2015 02:03
-
-
Save ee08b397/9994b284c42cf2cece45 to your computer and use it in GitHub Desktop.
cr2 to jpeg
This file contains hidden or 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 | |
# http://jcornuz.wordpress.com/2007/10/10/workflow-3-quick-raw-converting-batch/ | |
# processes raw files | |
for f in *.CR2; | |
do | |
echo "Processing $f" | |
ufraw-batch \ | |
--wb=camera \ | |
--out-type=jpeg \ | |
--compression=96 \ | |
--out-path=. \ | |
$f | |
done | |
# change the image names | |
for i in *.jpg; | |
do | |
mv "$i" "${i/.jpg}"_r.JPG; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://yltechblog.blogspot.com/2012/08/mass-convert-cr2-file-to-jpeg-with.html