ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: johnhaley on May 27, 2020, 10:22:49 PM

Title: One of these argument files should try to fix
Post by: johnhaley on May 27, 2020, 10:22:49 PM
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
Title: Re: One of these argument files should try to fix
Post by: StarGeek on May 28, 2020, 12:50:38 AM
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.