Canon CR3 -JpgFromRaw

Started by maha, June 24, 2025, 04:37:38 PM

Previous topic - Next topic

maha

Hi, I am shooting Canon R3 in CRAW mode. The seeraw contains a fullsize JPG.
I would like to extract is with

exiftool -r -b -JpgFromRaw -ext CR3 -w %.jpg .

Unfortunatelly no output is generated.



StarGeek

Works correctly here, though I don't think the resulting filename is the one you were looking for.

Y:\!temp\x\z>exiftool -G1 -a -s -filename .
======== ./454A0855.CR3
[System]        FileName                        : 454A0855.CR3
    1 directories scanned
    1 image files read

Y:\!temp\x\z>exiftool -r -b -JpgFromRaw -ext CR3 -w %.jpg .
    1 directories scanned
    1 image files read
    1 output files created

Y:\!temp\x\z>exiftool -G1 -a -s -filename .
======== ./454A0855%.jpg
[System]        FileName                        : 454A0855%.jpg
======== ./454A0855.CR3
[System]        FileName                        : 454A0855.CR3
    1 directories scanned
    2 image files read
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

StarGeek

More options using this example command from the docs.

Extracting just the JpgFromRaw
Y:\!temp\x\z>exiftool -G1 -a -s -filename .
======== ./454A0855.CR3
[System]        FileName                        : 454A0855.CR3
    1 directories scanned
    1 image files read

Y:\!temp\x\z>exiftool -a -b -W %d%f_%t%-c.%s -JpgFromRaw .
    1 directories scanned
    1 image files read
    1 output files created

Y:\!temp\x\z>exiftool -G1 -a -s -filename .
======== ./454A0855.CR3
[System]        FileName                        : 454A0855.CR3
======== ./454A0855_JpgFromRaw.jpg
[System]        FileName                        : 454A0855_JpgFromRaw.jpg
    1 directories scanned
    2 image files read

Using Preview:All
Y:\!temp\x\z>exiftool -G1 -a -s -filename .
======== ./454A0855.CR3
[System]        FileName                        : 454A0855.CR3
    1 directories scanned
    1 image files read

Y:\!temp\x\z>exiftool -a -b -W %d%f_%t%-c.%s -Preview:all .
    1 directories scanned
    1 image files read
    3 output files created

Y:\!temp\x\z>exiftool -G1 -a -s -filename .
======== ./454A0855.CR3
[System]        FileName                        : 454A0855.CR3
======== ./454A0855_JpgFromRaw.jpg
[System]        FileName                        : 454A0855_JpgFromRaw.jpg
======== ./454A0855_PreviewImage.jpg
[System]        FileName                        : 454A0855_PreviewImage.jpg
======== ./454A0855_ThumbnailImage.jpg
[System]        FileName                        : 454A0855_ThumbnailImage.jpg
    1 directories scanned
    4 image files read

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

wywh

#3
FWIW my workflow is as follows. For example, in family occasions my son shoots hundreds raws and rest of the family's duty is to pick the 5-10% keepers for him to edit. In our oldish Macs sorting through raw is quite slow and only the newest Mac has Lightroom installed. But every raw has an embedded .jpg in the metadata as ThumbnailImage, JpgFromRaw or PreviewImage or all of them depending on the raw format (.cr3, .cr2, .dng etc). In .cr3 JpgFromRaw has the same resolution as the raw so it is the one to pick:

exiftool -a -G1 -s -ee -Preview:All 2024-1224-1949-21.cr3
[Canon]         ThumbnailImage                  : (Binary data 13248 bytes, use -b option to extract)
[Track1]        JpgFromRaw                      : (Binary data 1319730 bytes, use -b option to extract)
[QuickTime]     PreviewImage                    : (Binary data 247176 bytes, use -b option to extract)

So I extract that best resolution .jpg with the help of exiftool config file (download and put "example.config" to the same folder as the raw images. Or for continued use, rename it as .ExifTool_config and put it to your home folder or to /usr/local/bin/exiftool and omit '-config example.config' from the command below). Then use the following command to very fast extract the best resolution embedded .jpg (SetTags option copies all metadata from the raw to the extracted .jpg so it is not lost in the process). I have not yet compared whether shooting Raw+Jpg would yield the exact same .jpg:

exiftool -config example.config -m -p '${BigImage;SetTags("All:All")}' -b -w _preview.jpg .
https://github.com/exiftool/exiftool/blob/master/config_files/example.config

Then it is a breeze for the rest of the family to use any old Mac's GraphicConverter Browser to pick and rate or color label the best .jpg images, and then post process the corresponding .raw in Lightroom as .jpg and import them to Photos.

p.s. macOS by default does not allow renaming files starting with a dot but you can bypass that limitation by first displaying such files via Shift-Command-. (that is a dot at the end), repeat that key combo to return to the default. Or in the Terminal 'mv example.config .ExifTool_config'
p.s. That quoting works for Mac/Linux, you might need to switch single to double quotes to suit Windows.
p.s. Thanks to StarGeek and Phil for the commands.

- Matti