Created
April 19, 2024 00:58
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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