ExifTool Forum

ExifTool => Newbies => Topic started by: gio91ber on September 18, 2018, 12:28:31 PM

Title: Organize photos in folders based on camera model
Post by: gio91ber on September 18, 2018, 12:28:31 PM
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.
Title: Re: Organize photos in folders based on camera model
Post by: Phil Harvey on September 18, 2018, 12:35:27 PM
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 (https://exiftool.org/forum/index.php/topic,8980.msg46436.html#msg46436)).

- Phil
Title: Re: Organize photos in folders based on camera model
Post by: gio91ber on September 18, 2018, 01:32:45 PM
thanks a lot!