DNG files must be handled first, so -FileOrder is used again to make sure of that.Įxiftool -FileOrder Filename -d '%Y%m%d_%H%M%S' -TagsFromFile %d%f.jpg '-filename<$CreateDate_$AttributionName.%e' /path/to/files/ Then you use -TagsFromFile to copy from AttributionName. It's unlikely but better safe than sorry in this case.Įxiftool -Fileorder Filename -ext jpg '-AttributionName<$' /path/to/files/ I'm also including the -FileOrder option just in case the file names are not alphabetical when exiftool receives them. FileSequence normally starts at 0 so this will increment the value to start at 1. First embed in the jpgs, since most people don't like to touch their raws. Otherwise the numbers would be off.Įxiftool -fileorder Filename -ext DNG -d '%Y%m%d_%H%M%S_%%.4nC.%%e' '-filename QuoteI still have not figured out why DATEFMT is not working though. m option may be used to ignore minor warnings and leave the This may be configured via the MissingTagValue API option), or the Option may be used to set the value of missing tags to '-' (but The line with the missing tag is not printed. If a specified tag does not exist, a minor warning is issued and This is a good way, but there are alternatives. Sample File Listing Before and After Each of Your Commands PhilTest-2 is the second command you gave. PhilTest-1 is the first command you gave me Your commands match your documentation exactly, yet they dont work. I still have not figured out why DATEFMT is not working though. I found the solution here: Is there another newer way to fail gracefully when tags used in the rename command are missing? Or is just creating a hierarchy of possible naming structures in the command the "right way" Here is my pseudo commands, I am aware these examples do not work at the moment due to having a script of about 100 different iterations of the commands, I have lost the individual ones that were working.Įxiftool -d '%Y.%m.%d-%Hh%Mm%Ss' '-filenamehave gotten the commands to do what I want separately but because the %c function keeps count per run I need to get my rename and move done on a single execution. I say this as how I need the exiftool to perform may not make alot of sense for organization to you, but it is needed to organize first to remove non belonging photos as well as identify photos messed with by apps (picasa) and the originals. Am long time fan of exiftool but I still suck at it.Īnyways my particular use case at this time I need to help fix a horribly butchered photo collection that has survived ~6 or so disk crashes and hurried backups to various locations as well as some image application butchering of the tags, and on top of that some mixing of other peoples photos into said collections.
0 Comments
Leave a Reply. |