Skip to content

Instantly share code, notes, and snippets.

@ee08b397
Created September 13, 2015 02:03
Show Gist options
  • Save ee08b397/9994b284c42cf2cece45 to your computer and use it in GitHub Desktop.
Save ee08b397/9994b284c42cf2cece45 to your computer and use it in GitHub Desktop.
cr2 to jpeg
#!/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
@ee08b397
Copy link
Author

http://yltechblog.blogspot.com/2012/08/mass-convert-cr2-file-to-jpeg-with.html

apt-get install ufraw
cd <dir of cr2>
for i in *.CR2; do ufraw-batch $i --out-type=jpeg --output $i.jpg; done;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment