ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: ThankYou on January 26, 2025, 03:21:41 AM

Title: Use of uninitialized value $json in numeric eq (==) at /usr/local/bin/exiftool
Post by: ThankYou on January 26, 2025, 03:21:41 AM
I am receiving the error below when running the following command against ExifTool version 3.10 on Mac.

Use of uninitialized value $json in numeric eq (==) at /usr/local/bin/exiftool line 3796.
exiftool -config [config file] -progress:%100b -m -ee3 -b -a -n -U -G --ext xml --ext xmp --ext aae --ext mie --ext txt -api RequestAll=3 -api LargeFileSupport -api QuickTimeUTC -@ [arg file] -csv [img dir] > [csv file]
This error only appears when using the -b option which I may not be fully understanding in this context. I am adapting another command to output CSV so I can examine some details before running against a large image set. The -b flag is not needed for this purpose so removing it was not a problem for me.

I still wanted to report the error in case it had other implications, or may help others.
Title: Re: Use of uninitialized value $json in numeric eq (==) at /usr/local/bin/exiftool
Post by: greybeard on January 26, 2025, 06:02:05 AM
To simplify the problem:

exiftool -b -csv f1.jpg > a1.csv

not that a binary csv file seems reasonable
Title: Re: Use of uninitialized value $json in numeric eq (==) at /usr/local/bin/exiftool
Post by: Phil Harvey on January 26, 2025, 03:44:26 PM
Thanks for this report!  I'll fix this in the next release.

- Phil