Author Topic: Sort Files to SubFolders by Month  (Read 120 times)

fischmir

  • New Members
  • *
  • Posts: 27
Sort Files to SubFolders by Month
« on: January 12, 2020, 10:17:27 AM »
Hi everyone,

I am not a pro-photograph. I just use iMatch as a database. I heavily use it for ratings...However, at the end of the year, I have ~ 3.500 pictures from my wife's iPhone and some friends for the entire year including all "events" like holiday,...At the end of the day, I want to create photobook, mostly organized by months.

In my workflow, I first rename all files to ~"date_time". Afterwards I can more or less paste ALL pics into one folder. In my next step, I create 12 subfolders (for each month Jan - Dec). So I divide (and conquer) and files.

I am searching an App which does exactly this for me: Take each pictures and get the year.month when it was taken. Afterwards, move this files to a subolder year.month (or create it in case it is not existing yet).  As I know from others forums where I am active, I'd like to ask if somebody done this before or knows a good solution for this?

Thanks,
Christian

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 23492
Re: Sort Files to SubFolders by Month
« Reply #1 on: January 12, 2020, 10:56:25 AM »
You can do that easily with the powerful Renamer in IMatch.

The Renamer can rename files based on many criteria (including date and time of course).
And it can copy or move files into other folders. And create the folders at the same time.
The names of the folders are fully dynamic and controlled via normal IMatch variables. Which makes it easy to create them from a month name or year/month or whatever you want.

If you have not used the Renamer yet, I would recommend:

1. Create a new folder in IMatch and copy a few dozen of your files into this. This allows you to test every Renamer feature safely.
2. Read the Renamer help topic (link above) and setup the steps to rename your files in your normal naming scheme. There are many examples in the help.
3. Setup a move step which moves the files into sub-folders created from one of the datetime variables.

Let us know if you need additional help with one of these steps.

JohnZeman

  • Global Moderator
  • *****
  • Posts: 1211
  • I'm too damn old to act my age.
Re: Sort Files to SubFolders by Month
« Reply #2 on: January 12, 2020, 03:51:49 PM »
Although I do rename all of my files (photos) using a YYYY_MMDD_HHMMSS_SSS format, I wouldn't have to do that since I use a data driven category to automatically create a date organized category tree for me.

IMatch reads the date created from a metadata tag in each file and automatically generates the category tree like the following

Century
Decade
Year
Headline
Month
Day

I don't have to create anything, IMatch does it all.  Of course for this to work each file must have the correct date created metadata for IMatch to use.

To do this I use the value contained in the

Exif::Main\36867\DateTimeOriginal\0

Tag of each file where the date created timestamp (at least for my country) is stored in the following format:

2019:10:18 13:07:30
YYYY:MM:DD HH:MM:SS

IMatch parses that timestamp and creates the category tree for me (see attached screenshot).

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 23492
Re: Sort Files to SubFolders by Month
« Reply #3 on: January 12, 2020, 03:59:58 PM »
This is a good way to do it, unless you want to have the files in specific physical folders based on year/month/....

Of course you also see your files organized by year, month, day also in the Timeline. Automatically and independent from their physical location.


A suggestion:

Instead of using the EXIF timestamp directly, I would recommend to use the

{File.MD.XMP::xmp\CreateDate\CreateDate\0} or {File.MD.XMP::photoshop\DateCreated\DateCreated\0}

variables instead. These time stamps exist and work also for non-image formats and files without EXIF metadata. IMatch fills these from the best available date and time information.
IMatch uses these in the Metadata Panel, for the Timeline etc.

JohnZeman

  • Global Moderator
  • *****
  • Posts: 1211
  • I'm too damn old to act my age.
Re: Sort Files to SubFolders by Month
« Reply #4 on: January 12, 2020, 04:15:49 PM »
That's a good suggestion Mario, thanks.

The EXIF date tag has been working great for me because for all of my very old scanned images I'd previously used ExifTool to set the timestamp of the EXIF tag.

I'll make a note to try the tags you suggest instead.  I can see where they would be better in case I find some old photos to scan again or decide to add some non photo format files to my database.

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 23492
Re: Sort Files to SubFolders by Month
« Reply #5 on: January 12, 2020, 04:28:11 PM »
if your files have EXIF data, the XMP time stamps are filled from these during import (EXIF => XMP) so the data will be identical.
I just recommend XMP because it is the 'super' format and IMatch updates XMP timestamps only (and the EXIF timestamps during write-back).

JohnZeman

  • Global Moderator
  • *****
  • Posts: 1211
  • I'm too damn old to act my age.
Re: Sort Files to SubFolders by Month
« Reply #6 on: January 12, 2020, 04:53:50 PM »
Just changed my data-driven category timestamp tag from the EXIF one to

XMP::xmp\CreateDate\CreateDate\0

And everything seems to be working just fine. :)

Apologies to Christian, I didn't mean to hijack your thread, just kind of got on a roll here blabbing about my situation.