How to deal with non existing tags when renaming?

Started by rkrug, September 14, 2013, 01:09:54 PM

Previous topic - Next topic

rkrug

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

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

rkrug

Thanks - I'll do.

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


Phil Harvey

The sample config file is included in the full Perl distribution, or you can also find it here (this is linked 4 times from the ExifTool home page).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).