12.65 suppressing duplicates from different groups?

Started by ekornblum, August 18, 2023, 06:23:59 PM

Previous topic - Next topic

ekornblum

This is a command I've run for past versions of exiftool:
exiftool -t -f -G -XMP:Source -IPTC:Source file_to_check.jpg
(-t for tab delimited output, -f to force printing of all tags even if no values, and -G to print the group name)

With 12.62 and before it was correctly (or what I think of as correctly...) showing both values:
XMP Source John Doe
IPTC Source John Doe

But with 12.65 it's not showing the IPTC Source value. Here's the output we get:
XMP Source John Doe
Is this because 12.65 considers the IPTC one a duplicate, even though it's in a different Group (IPTC) than the XMP one?

And if I add the -a option to allow duplicate tags to be extracted, it does show the IPTC Source, but then it's displaying that twice:
XMP Source John Doe
IPTC Source John Doe
IPTC Source John Doe

(is it even possible that there are actually 2 IPTC Source tags in the file?)

Is this a bug in 12.65? If not, is there any way that I can get 12.65 to act like it did in previous versions where it would show the 1 tag for each group?
Any help greatly appreciated!

Thanks
Eric Kornblum

StarGeek

I can replicate it here.  I tried removing each option to see if that changed anything and it did not.
C:\>exiftool -P -overwrite_original -all= -xmp:source=XMP:Source -IPTC:Source=IPTC:Source y:\!temp\Test4.jpg
    1 image files updated

C:\>exiftool -t -f -G -XMP:Source -IPTC:Source y:\!temp\Test4.jpg
XMP    Source    XMP:Source

C:\>exiftool  -f -G -XMP:Source -IPTC:Source y:\!temp\Test4.jpg
[XMP]          Source                          : XMP:Source

C:\>exiftool -G -XMP:Source -IPTC:Source y:\!temp\Test4.jpg
[XMP]          Source                          : XMP:Source

C:\>exiftool -XMP:Source -IPTC:Source y:\!temp\Test4.jpg
Source                          : XMP:Source

C:\>exiftool_12.64 -t -f -G -XMP:Source -IPTC:Source y:\!temp\Test4.jpg
XMP    Source    XMP:Source
IPTC    Source    IPTC:Source

Quote from: ekornblum on August 18, 2023, 06:23:59 PM(is it even possible that there are actually 2 IPTC Source tags in the file?)

Yes.  Some badly written software can do that.  I have a file that has five separate IPTC blocks and I've seen up to seven before.

Use the command in FAQ #3 and there should be a number for each block
C:\>exiftool -G1 -a -s -ApplicationRecordVersion  Y:\!temp\!Odd_Metadata_Chunks\0419113238478_086_Five_IPTC_Chunks.jpg
[IPTC]          ApplicationRecordVersion        : 2
[IPTC2]        ApplicationRecordVersion        : 2
[IPTC3]        ApplicationRecordVersion        : 2
[IPTC4]        ApplicationRecordVersion        : 2
[IPTC5]        ApplicationRecordVersion        : 2
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

ekornblum

Hi StarGeek,
Thanks for looking into this.

I'm running on MacOS Monterey 12.6.8, and I think I'm on Python 3.8.1 if that matters.
Exiftool is working as I'd expect it when using versions 12.55 and 12.62, but I see the problem when running 12.65.

I haven't used the -G# group number commands as I'm not interested in seeing the "extra" tags (I just want to see a single value for XMP:Source and a single value for IPTC:Source as I would get when using the earlier versions of exiftool).

So am I correct in assuming that this is a bug in 12.6.5 and that I should be able to see a single XMP:Source value and a single IPTC:Source value using the options I have in previous versions (-t -f -G)?

Thanks much
Eric

Phil Harvey

Thanks for this report.  I'll look into it.

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

Phil Harvey

Found the problem.  This only affects 12.65 and will be fixed in 12.66.

Thanks so much for the report!

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

StarGeek

Quote from: ekornblum on August 18, 2023, 08:37:43 PMI'm running on MacOS Monterey 12.6.8, and I think I'm on Python 3.8.1 if that matters.

Exiftool is written in Perl, not Python.  And I use the Windows "executable", so it was affecting that as well.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype