Validate EXIF Data Types

Started by zimm218, September 07, 2018, 10:22:54 AM

Previous topic - Next topic

zimm218

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!

Phil Harvey

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 for help repairing corrupted EXIF.

- 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 ($).