http://askubuntu.com/questions/483379/how-to-convert-cr2-to-jpg-or-png
sudo apt-get install ufraw-batch ufraw-batch --out-type jpeg *.CR2