One of these argument files should try to fix

Started by johnhaley, May 27, 2020, 10:22:49 PM

Previous topic - Next topic

johnhaley

Hi everyone,

Currently I'm having quite a hard time figuring out some conditional expressions for Exiftool to work with.
Big picture: I'm trying to run Exiftool with a set of argument files on every JPEG file that gets uploaded to an image gallery website.
One of these argument files should try to fix the messed up EXIF data that was written by my mobile phone (HTC One M8). So first I'm trying to match the exact type of make and model case-insensitive (because both upper and lower case versions exist depending on firmware version ::)).

Thanks

StarGeek

At the basic level, you would use something along the lines of
-if '$TAG=~/string/i'

That does a case insensitive regex match.  Replace TAG with the tag you're comparing and string with what you want to compare it with.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).