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!
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