Trying to fix metadata warning (tip 20) not working.

Started by sebutzu, September 13, 2018, 06:26:16 PM

Previous topic - Next topic

sebutzu

OS: Windows 10/ 64bit, Ver: 11.10, Calling from C# using ExifToolWrapper.cs with some changes, exiftool started with stay open and params:

-fast  -m -q -q -stay_open True -@ - -common_args -d \"%Y.%m.%d %H:%M:%S\" -c \"%d %d %.6f\" -t -s -G -a

then calling:


-all=
-tagsfromfile
@
-all:all
-unsafe
-icc_profile
-P
-m
-overwrite_original
E:\Work\test.jpg


(plus execute...)

results in:


    1 image files updated


The warning from the file is:
Invalid CanonAFInfo data

It remains the same after the command is run. Expected - to fix the problematic tags.

Attached is a sample image (but I have a lot of them).

Also running exiftool directly:
"exiftool(-k).exe" -all= -tagsfromfile @ -all:all -unsafe -icc_profile -F -a "E:\Work\test.jpg"

results in
Warning: Invalid CanonCameraSettings data - E:/Work/test.jpg
Warning: Invalid CanonShotInfo data - E:/Work/test.jpg
Warning: Invalid CanonAFInfo data - E:/Work/test.jpg
    1 image files updated


but the file stays the same (with same errors).

How can I get rid of the errors?

Phil Harvey

Thanks for this report.

Unfortunately ExifTool can't fix everything.  The only way to get rid of this particular error is to delete the makernotes entirely.

Note that you should not get an error like this when running ExifTool on an original file straight from the camera.  If you do, then I would like to know about 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 ($).