ExifTool Forum

ExifTool => Newbies => Topic started by: rkrug on September 14, 2013, 01:09:54 PM

Title: How to deal with non existing tags when renaming?
Post by: rkrug on September 14, 2013, 01:09:54 PM
Hi

I am using now the following to rename images and moview in the directory DIR:

exiftool -r -d ~/Pictures/test/%Y/%m/%Y.%m.%d_%H.%M.%S '-filename<${Exif:CreateDate}_%2c__$Make.$Model.%e' DIR

Now some images don't have the date tag or the Make and Model tag - is there a way of telling exiftools to use a different tag (which one would be more universal) or simply to ignore the tags (in the case of the Make and Model)?

Thanks,

Rainer
Title: Re: How to deal with non existing tags when renaming?
Post by: Phil Harvey on September 14, 2013, 02:02:52 PM
Hi Rainer,

From the application documentation:

            If a specified tag does not exist, a minor warning is issued and
            the line with the missing tag is not printed.  However, the -f
            option may be used to set the value of missing tags to '-' (but
            this may be configured via the MissingTagValue API option), or the
            -m option may be used to ignore minor warnings and leave the
            missing values empty.

It would also be possible to replace one tag with another, but this would require the creation of a user-defined Composite tag.  See the sample config file or search this forum for more details.

- Phil
Title: Re: How to deal with non existing tags when renaming?
Post by: rkrug on September 14, 2013, 03:36:48 PM
Thanks - I'll do.

But where can I find the config file under OS X?

Title: Re: How to deal with non existing tags when renaming?
Post by: Phil Harvey on September 14, 2013, 07:08:31 PM
The sample config file is included in the full Perl distribution, or you can also find it here (https://exiftool.org/config.html) (this is linked 4 times from the ExifTool home page).

- Phil