ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: sebutzu on September 13, 2018, 06:26:16 PM

Title: Trying to fix metadata warning (tip 20) not working.
Post by: sebutzu on September 13, 2018, 06:26:16 PM
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?
Title: Re: Trying to fix metadata warning (tip 20) not working.
Post by: Phil Harvey on September 17, 2018, 08:03:34 AM
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