Extracting JPEG from older RAW file with exiftool not possible?

I’m trying to extract the embedded JPEG from an .ORF RAW file with exiftool but don’t succeed.

The photo dates from 2008 captured with my Olympus E-3. I use the following command:

exiftool -b -jpgfromraw -w %.jpg *.ORF

Exiftool logs:

0 output files created

Extracting JPEGs from other RAW files works with no issues. Anyone knows what could be the reason?

It might not be hiding in the “JpgFromRaw” location, try a different one? Use exiftool -a -u -s -G1 to see the file structure. It’s also possible that there simply is no thumbnail/preview embedded…

Thank you. What should I look for in the file structure printed by exiftool?

I usually just run dcraw -e some.raw

I use this command, which should extract all embedded previews: exiftool -a -b -W %d%f_%t%-c.%s -preview:all *.ORF

And a shell script that will take as argument any number of files and/or folders:

#!/bin/bash

for var in "$@"
do
    echo "## $var"
	
	if   [ -d "${var}" ] # Directory
	then
		path=$var
		file=$var
	elif [ -f "${var}" ] # File
	then
		path="$(dirname "${var}")"
		file="$(basename "${var}")"
	else
		echo "Not a valid file or directory"
		exit 1
	fi
	
	cd "$path" || exit

	exiftool -a -b -W %d%f_%t%-c.%s -preview:all "$file"

done
1 Like

Thank you, this did it!

1 Like