ExifTool Forum

ExifTool => Newbies => Topic started by: okeetd on January 16, 2020, 10:41:02 AM

Title: Combining Exif Tags - CustomRendered and Date Time Original
Post by: okeetd on January 16, 2020, 10:41:02 AM
Hello I am looking to add the custom rendered tag to my date time original tag so that I can differentiate the duplicates created using Apples Portrait Mode.  The custom rendered exif tag identifies these pictures as Portrait HDR which is great, but I don't know how to add that to the script to combine it with Date Time Original.

Here is what I have tried which did not work....

exiftool -ext jpg "-FileName<CustomRendered" "-FileName<DateTimeOriginal" -d "%Y-%m-%d %Hh%Mm%Ss.%%e" "G:\Import Folder\TRIAL RENAME\Portrait Mode Test"

I would like the final output to look like this (Portrait HDR 2019-11-09 18h39m48s.jpg)

Any help would be appreciated
Title: Re: Combining Exif Tags - CustomRendered and Date Time Original
Post by: StarGeek on January 16, 2020, 11:28:01 AM
See this example (https://exiftool.org/exiftool_pod.html#exiftool--FileName-CreateDate-_-filenumber.jpg--d-Y-m-d--ext-jpg) from the Renaming Examples on the doc page for the basic format.

In your case, it would end up something like
exiftool -ext jpg "-FileName<$CustomRendered $DateTimeOriginal" -d "%Y-%m-%d %Hh%Mm%Ss.%%e" "G:\Import Folder\TRIAL RENAME\Portrait Mode Test"

Because you have a space between $CustomRendered and $DateTimeOriginal, there's no need for the braces as in that example (braces are used to separate tag names from adjacent text), but they don't hurt if they're added anyway.
Title: Re: Combining Exif Tags - CustomRendered and Date Time Original
Post by: okeetd on January 16, 2020, 04:38:19 PM
Thanks Stargeek - that worked perfectly.