Linux – Convert CR2 to JPG / PNG / etc.

To convert images taken from an Canon EOS 600D in CR2 format to the jpg format you need to install the ufraw package.

$> sudo ​apt-get install ufraw

After that you can navigate to the folder that contains the cr2-files and run the following bash script:

$> for i in *.CR2; do ufraw-batch $i --out-type=jpeg --output $i.jpg; done;

As bash alias:

alias convert_CR2_to_JPG='for i in *.CR2; do ufraw-batch $i --out-type=jpeg --output JPG/$i.jpg; done;'

One thought on “Linux – Convert CR2 to JPG / PNG / etc.

Leave a Reply

Your email address will not be published.

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.