Cook your RAW photos into JPEG with Linux

Shooting in RAW format is great for the photography buff. However, when it is time to share with others, post on your photo gallery, or print at the local photo printing shop, you want something more portable. Here we'll look at converting RAW photos (specifically Canon's CRW format) into JPEGs using a batch command-line approach in BASH.

We will be using two tools to do our batch conversion:
1- DCRAW (available here)
2- CJPEG (available here)

CJPEG is part of the standard JPEG library (libjpeg) so you should already have that installed. If not you can find the source here and built as such: