ExifTool Forum

ExifTool => Newbies => Topic started by: zimm218 on September 07, 2018, 10:22:54 AM

Title: Validate EXIF Data Types
Post by: zimm218 on September 07, 2018, 10:22:54 AM
I am working with a few images that are failing in a .net image library, error is a generic cast exception, likely related to a poorly typed exif profile. I believe it would be failing on resolution tags, possibly x/y resolution tag. I want to validate this, how would one use this tool for the purpose of pulling jpeg tags and validating they are the correct data type. Then if they are not, if I edit a tag does the application automatically type them according to the standard or does it retain the tags current invalid datatype? Any tips or commands are helpful, thanks!
Title: Re: Validate EXIF Data Types
Post by: Phil Harvey on September 07, 2018, 02:50:07 PM
You can try this:

exiftool -validate -warning -error -a FILE

When writing with ExifTool, it only corrects the format of tags that you write.  Others left alone. See FAQ 20 (https://exiftool.org/faq.html#Q20) for help repairing corrupted EXIF.

- Phil