Problems with -OriginalRawImage using -ext

Started by herb, November 12, 2021, 08:47:06 AM

Previous topic - Next topic

herb

Hallo Phil,

thanks for the new version 12.35 of ExifTool and thanks for the correction: Fixed problem generating the correct file extension when extracting OriginalRawImage from a DNG file using the -W option with the %s format code.

Sorry, but I found a problem when using option -ext.

I have a directory F:\dng with
- a subdirectory subdir and
- only 1 file: test.dng

The command
exiftool.exe -b -originalrawimage -w F:\dng\subdir\%f.%e_OriginalRawImage.%s -ext dng F:\dng
creates 1 file in subdir: test.dng_OriginalRawImage
but without extension .%s (.pef in my case).

Thanks for a correction in advance.
Best regards
herb

Phil Harvey

Hi Herb,

The %s format code works only with the -W option (not -w).

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

herb

Hello Phil,

thanks for your quick reply.
And congratulations: you found an error in my application.

For writing into textfiles it uses option -w (lower case).
For writing binary data (e.g. OriginalRawImage) into external files it uses option -W (upper case).

But in combination with -ext it did it wrong.

Thanks for your help and sorry, making so much noise.
Best regards
herb