ExifTool Forum

ExifTool => Newbies => Topic started by: Iwonder on May 05, 2024, 05:16:49 AM

Title: Output problem ("duplicate" ?)
Post by: Iwonder on May 05, 2024, 05:16:49 AM
Hello,

Independantly, both following commands work fine :
exiftool.exe -T -Filename -RegionPersonDisplayName *.jpg > testA.txt

exiftool.exe -T -Filename -RegionInfoMP -struct *.jpg > testB.txt


But I need both informations in the output text file. When combining both arguments in a single command, only the -RegionInfoMP is written.

I tried the -a option, but no change.
Is there an easy way to get both ?
Title: Re: Output problem ("duplicate" ?)
Post by: StarGeek on May 05, 2024, 10:04:30 AM
I don't think it's possible. At least, I don't see a way.  The addition of the -struct option (https://exiftool.org/exiftool_pod.html#struct---struct) forces all output to be structured and flattened tags don't get extracted.
Title: Re: Output problem ("duplicate" ?)
Post by: Phil Harvey on May 05, 2024, 12:09:38 PM
Add -api struct=2 to your command.  See the API Struct option (http://exiftool.org/ExifTool.html#Struct) description for more information.

- Phil
Title: Re: Output problem ("duplicate" ?)
Post by: Iwonder on May 06, 2024, 12:19:23 PM
@StarGeek, @Phil Harvey

Thanks a lot !!!