Organize photos in folders based on camera model

Started by gio91ber, September 18, 2018, 12:28:31 PM

Previous topic - Next topic

gio91ber

Hello,

I'm using exiftool via cygwin on windows 10. My photo archive is currently organized by year and month thanks to the exiftool command I use every time I want to add some photos:
exiftool -d "%Y/%m/%Y-%m-%d_%H.%M.%S%%-c.%%e" "-filename<datetimeoriginal" "import/folder"

My first question is: can I improve the command by using "-filename<filemodifydate" "-filename<createdata" "-filename<datetimeoriginal" so that even the very old photos savaged from an old broken hard disk can be organized as well?

I would also like to organize my photo archive by camera model named folder (like "canon1000D/year/month" and "nikonD200/year/month"), is it possible to do so with a single exiftool command?

Thanks in advance. And sorry for my very bad English.

Phil Harvey

Quote from: gio91ber on September 18, 2018, 12:28:31 PM
can I improve the command by using "-filename<filemodifydate" "-filename<createdata" "-filename<datetimeoriginal" so that even the very old photos savaged from an old broken hard disk can be organized as well?

Yes. ("CreateDate" not "CreateData")

QuoteI would also like to organize my photo archive by camera model named folder (like "canon1000D/year/month" and "nikonD200/year/month"), is it possible to do so with a single exiftool command?

Yes.  Something like this:

exiftool -d "%Y/%m/%Y-%m-%d_%H.%M.%S%%-c.%%e" "-filename<${model;}/$filemodifydate" "-filename<${model;}/$createdate" "-filename<${model;}/$datetimeoriginal" "import/folder"

But you will have to do some reformatting of the Model tag to get the exact model name you want.  You can do this with an advanced formatting expression (as I have done above to remove illegal characters), or create a user-defined tag (see here for an example).

- 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 ($).