Question to embedded images

Started by herb, May 23, 2025, 10:12:58 AM

Previous topic - Next topic

herb

Hello Phil,

by accident I found a *.dng image that contains >1 embedded OtherImage s.

With try and error I found that it is possible to extract these images e.g. with one of the following commands:
exiftool.exe -b -copy2:otherimage -w image.jpg test.dng
exiftool.exe -b -subifd2:otherimage -w image.jpg test.dng

In forum - I hope I remember right - I have read that also a 2nd PreviewImage (of an *.dng) can be extracted with
exiftool.exe -b -copy1:previewimage -w image.jpg test.dngI cannot test because I do not have such an image.

This leads to the question: what is 'PreviewImage (1)' ?

I see this in definition of tag BigImage in example_config file.
So it should be a tag or ... ?
and how do I have to work with it?

Thanks for your comments in advance
Best regards
herb

Phil Harvey

Hi Herb,

"PreviewImage (1)" is a tag key used in the API.  This tag would be accessed as Copy1:PreviewImage from the command line.

- 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 ($).

FrankB

Herb,

I have lots of DNG's with multiple previews. If you run a RAW file thru Adobe DNG Converter it will add 'JpgFromRaw' if I'm  not mistaken. Let me know if you need some samples.

Frank
BTW: With ExifToolGui you can see, and extract, them all.
previews.jpg

herb

Hello Phil, hello Frank,

thanks for your answers.

@Frank: Yes I am interested in a *.dng with multiple previews.

If you, Frank or Phil, are interested in a *.dng with multiple OtherImage I will post a link here.

Thanks again
Best regards
herb

FrankB


herb


herb

Hello Phil,

one additional question:
Let's assume it makes sense to add e.g. -copy1:otherimage to tag BigImage.
Can I do this adding the line:
6 => 'OtherImage (1)',
Thanks in advance
Best regards
herb

Phil Harvey

Yes, it is that simple.  :)

- 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 ($).