Strange behaviour with -u option

Started by herb, July 03, 2022, 05:45:51 AM

Previous topic - Next topic

herb

Hello Phil,

I work on a Windows 10 system with Exiftool 12.42.
My C++ application starts Exiftool with -stay_open option.

For the following sequence of tasks
   exiftool.exe -a -g0:1 -u -validate -All:all   testfile
   exiftool.exe -a -g0:1     -validate -All:all   testfile

both commands show the unknown tags.
This is only in case of -validate is used.

For me it looks like an error, because -u seems to be NOT reset.

Thanks for help in advance
Best regardss
herb

StarGeek

Phil is currently away from the net, so it'll be a few days before he can look at this.
"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

Phil Harvey

Interesting, yes.

This is a bit tricky because ExifTool uses the Unknown option to generate permanent entries for unknown tags in the internal tag tables.  The Verbose option also does this for some tags.  But the Unknown option is also used to extract some pre-defined but seldom-used tags.

ExifTool should have been suppressing the generated tags from the Validate output, but I wanted to include the seldom-used tags, which is the reason for this problem.

I'll patch ExifTool 12.43 to fix this behaviour with respect to the Apple tags and the Validate option.  There may be other cases that need to be patched like this but I don't have time to do a full audit right now.

- 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 the correction in version 12.43

Best regards
herb