Bug with -fileNUM option

Started by ywzc, July 02, 2025, 10:04:46 AM

Previous topic - Next topic

ywzc

I think there is a bug with the -fileNUM option. When using a tag name as the ALTFILE format (e.g. -file1 '$XMP-xmpMM:PreservedFileName') with more than one file, the ALTFILE becomes the same one for all files (probably the first one) even though each SRCFILE has a different XMP-xmpMM:PreservedFileName value.

Steps to reproduce:

1. Directory with 3 images IMG_0001.JPG, IMG_0002.JPG, IMG_0003.JPG.
2. exiftool -overwrite_original '-XMP-xmpMM:PreservedFileName<FileName' DIR3. Create copies of these three images and name them 1.JPG, 2.JPG, 3.JPG respectivly.
4. exiftool -s -G1:8 -file1 '$XMP-xmpMM:PreservedFileName' -FileName -file1:FileName 1.JPG 2.JPG 3.JPGThe output is:
======== 1.JPG
[System]        FileName                        : 1.JPG
[System:File1]  FileName                        : IMG_0001.JPG
======== 2.JPG
[System]        FileName                        : 2.JPG
[System:File1]  FileName                        : IMG_0001.JPG
======== 3.JPG
[System]        FileName                        : 3.JPG
[System:File1]  FileName                        : IMG_0001.JPG
    3 image files read

Is this a bug or am I missing something?

Phil Harvey

Great, thanks for this report, and for the detailed description to allow this bug to be reproduced.

This will be fixed in version 13.32.

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

ywzc

Version 13.32 works as expected. Great, thank you.