ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: StarGeek on August 29, 2016, 05:19:08 PM

Title: -api Filter and -if
Post by: StarGeek on August 29, 2016, 05:19:08 PM
I've been having a lot of fun delving into the -api Filter option.  The one problem I've been having, though, is that the filtering takes place before anything else.  I can't use the -if option to limit what files get processed.  Exiftool will rewrite every file.  Any chance of an option to filter after doing the -if compare?

No worries if it's not something convenient.  One pass which rewrites everything is still faster than a whole bunch of single runs to check and compare.
Title: Re: -api Filter and -if
Post by: Phil Harvey on August 29, 2016, 10:04:43 PM
The filtering happens only to the print-converted values.  You can use the numerical values ($TAG#) in your -if statement if you want to access the unfiltered values.

- Phil
Title: Re: -api Filter and -if
Post by: StarGeek on August 29, 2016, 10:50:12 PM
Perfect!  Time to rewrite the stuff I just rewrote!
:D