Help with JpegFromRaw - Olympus ORFs

Started by Zoltran, September 22, 2022, 01:59:07 PM

Previous topic - Next topic

Zoltran

Hello
I'm trying extract the embedded jpeg from my Olympus OM1 and EM1-2 ORF files.   
When I use the syntax below, exiftool seems to read the ORF but no output is created.
If I add '-b' then the JPGs are written but are not a readable jpeg.   

What is the correct syntax I should be using
Thanks in advance

wes@MacBook-Pro test % exiftool  -JpgFromRaw -w JFR.JPG -ext ORF -r .
    1 directories scanned
    2 image files read
    0 output files created



Phil Harvey

Use this command to see what embedded images are available in your file:

exiftool -preview:all -s FILE

Also, you'll need to add the -b option in your final command to extract it as binary data (but the output of the above command will tell you this).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Zoltran

Thanks for the quick reply.   
That helped a lot.   Once I realized it was the '-preview' option it made more sense. 
I was able to use this to extract the jpegs. 
exiftool -a -b -W %d%f_X.%s -preview:Previewimage -ext ORF

Is there a way to extract the Preview AND it's associated metadata?   Preferably all of it, but especially exposure, camera info and GPS

W

Phil Harvey

You can run ExifTool on the extracted preview, but I think you'll find it doesn't contain any metadata.

If you want to copy the metadata from the ORF to the preview, this may be done in a second step.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Zoltran

Yes, the output jpeg has no metadata. 

A pointer or two to read up on how I'd write the metadata to the jpeg in a 2nd pass would be appreciated.   

Phil Harvey

If you want a general command to work for all of your extracted images then I need to know the exact naming convention you are using.  If you are adding _X to the file name as in your example command, then you would use this command to remove the last 4 characters from the file name:

exiftool -tagsfromfile %d%-.2f.ORF --ext orf DIR

This will copy the metadata from ORF to non-ORF files in directory DIR.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).