Convert CR2 to JPEG with Ubuntu

I’ve just come back from Toronto, Canada, with a pile of pictures taken with my Canon G12 camera. Of course the pictures are taken in RAW format (CR2 extension) in order to maximize quality and enable digital post-processing. However, such format is not convenient in order to display the pictures in a TV. Thus, I have to automaticlly convert the RAW pictures to JPEG. How? Easy:

find . -type f -name “*.CR2” -exec ufraw-batch –out-type=jpeg ‘{}’ \;

In case the ufraw-batch command is not found, you need to install it using the common sudo apt-get install ufraw. And that’s all! Just sit back and relax meanwhile the pictures are converted.