Skip to content

Instantly share code, notes, and snippets.

@PollyP
Created April 19, 2024 00:58
Show Gist options
  • Save PollyP/8defecc0840eb32cca9845a854915da3 to your computer and use it in GitHub Desktop.
Save PollyP/8defecc0840eb32cca9845a854915da3 to your computer and use it in GitHub Desktop.
Batch conversion of .CR3 (Canon compressed raw files) images into .PNG files on Linux
Install RawTherapee, available from https://rawtherapee.com/downloads/5.10/.
My package manager had the old 5.8 one that couldn't handle .CR3 files, so I grabbed the 5.10 AppImage
and extracted the CLI tool with --appimage-extract.
Basic command line usage example: rawtherapee-cli -o ../canon-png/IMG_4555.CR3 -s -t -Y -c canon-raw/IMG_4555.CR3
Batch bash script: for f in canon-raw/*.CR3 ; do newf=./canon-png/`basename $f`; raw-therapee-cli -o $newf -s -t -Y -c $f; done
More examples at RawTherapee's CLI usage page: https://rawpedia.rawtherapee.com/Command-Line_Options
I found a page at https://www.isoftstoneinc.com/insights/libraw-rawtherapee-imagemagick/ that described how to
integrate RawTherapee into imagemagick, but I couldn't make it work. :( I gave up and will use the RawTherapee
CLI binary directly for raw files conversions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment