Skip to main content

Getting photos organized into date specific folders.

It’s difficult dealing with a large number of photos. Over the years I have accumulated a lot and I’ve also deleted a lot. Though I’m sure not as much as some people, right now I have around 1.25TB. Before I go into more specific details about my personal quest to get things organized and backed up to some degree, I wanted to mention the main purpose of this article.

To get things organized into the most logical format possible, it was difficult finding something that would work, at least on Windows. After some experimentation and searching I wound up using Exiftool. It’s a somewhat simple command line tool that can do batch processing on images and source EXIF data in that process. Other tools I found didn’t work as I had expected, or were a hassle to use.

In Windows, you download the standalone EXE from Phil’s Exiftool website, extract the EXE, rename it by removing the (-k), and copying it to the C:\Windows directory for ease of running from the command line, because no path to the EXE is needed if it is in the Windows directory.

***** Acdsee specific command *****
I use a photo editor called “Acdsee Photo Studio”. It creates a hidden directory named “[developed]” for each folder that I’ve edited photos in. I don’t want to push those jpegs into my archive, so I have to clear those out before using exiftool to sort and move files.

for /F %i in ('dir C:\PhotoWork\ /A:HD /S /B') do rmdir /s /q %i

Where “PhotoWork” on the ‘C’ drive will be processed recursively to remove those hidden directories. This is necessary because exiftool, by default, processes data in hidden folders. I’m not sure how to have it not do that. Using this recursive command was easier to setup. If for whatever reason you have hidden directories in your photo collection you don’t want to delete, don’t use this command!
**********

I’m still unsure on what everything means in the command line here, but here is the process I’m using right now to get things ordered (Windows 10):

exiftool -r -d F:/IMAGES/%Y/%m/%d/%Y%m%d_%H%M%S%%-c.%%e "-FileName<CreateDate" "-FileName<DateTimeOriginal" C:\PhotoWork

This command will MOVE the files, keep that in mind.

The gist here is that my photos are in a jumbled mess in C:\PhotoWork. The tool takes those, and in the process of moving them it renames them and places them in new folder structure F:/IMAGES with further paths for the year, month, and day based on internal EXIF data. The main details on how to write calls to the application can be found here.

In my case:
%Y = 4 digit year
%m = 2 digit month
%d = 2 digit day

%H = 2 digit hours
%M = 2 digit minutes
%S = 2 digit seconds

%%-c = When photos have duplicate timestamps, this will give them a unique batch number, so it is an important step.

%%e = the original file extension

The other parameters “-FileName<CreateDate” “-FileName<DateTimeOriginal” (and “-filename<filemodifydate”), are related to what tags or information about the file it pulls from to form dates values.

That’s it. Running the line from Window’s CMD.exe with administrator privileges should result in a reordered file structure. For me, it’s running as I write this and appears to be working.

I started with most of the photos duplicated manually over two disk drives. Recently I purchased a second 3TB drive and set that up as RAID 1. Copying the photos, just barely, onto a 1.5TB external drive I had. I eventually got them back on the new RAID1 setup and have been trying to get them organized. Even though the photos are technically on 3 disks now, it still feels like bare minimum in regard to backup. I’m not too worried if someday I lose everything, because they are not that important (“I can always take new photos”) and I have a good deal of them on in my Zenfolio gallery as high resolution JPEGs as well as sprinkled around social network websites in smaller format.

Popular posts from this blog

First look at the Sigma 18-50mm F/2.8 for Sony E-mount bought from KEH

I've use a Sony Alpha A6000 and the PZ 16–50mm F/3.5–5.6 OSS kit lens with my computer as a webcam for a long time now. It's a lower cost option that has been very consistent outputting 1080p at 30 FPS to a USB based HDMI capture device. The kit lens is generally fine, but it has a few quirks. The biggest issue is that throughout the zoom range the maximum aperture value is not fixed. This introduces technical challenges when I want to show detailed views of product or similar use cases. There are also other considerations I'll talk about later in this article. So I decided to buy the Sigma 18-50mm F2.8 DC DN | C lens in E-mount as a replacement.  Links in this article are a mix of paid and through my affiliates. I earn from each in different ways. One is a flat fee and the others I earn from qualifying purchases. Considering them for your purchasing needs helps make the creation of this information viable!   I made a video unboxing the lens and trying it out with Open ...

Camera Gear Reviews and Marketing Issues Exposed

A great overview by Gerald Undone on his experiences in the field of camera gear related videos! It is an important topic. The more open the better, I’d say. After over 13 years making photography and videography gear videos, I’ve not had a huge amount of success comparatively, but I’ve also never been especially brand safe to begin with for these companies to consider me. 🤣 I think his mentions toward the end of the video are especially important. The unwritten pressure, or worse with companies like Insta360 , shouldn’t be acceptable and should be publicly called out more often. That’s probably the only way things will actually change for the better. I created a video detailing my opinion on the topic further: More of my comments on the video… His YouTube channel. 4:30 I understand that’s what Gerald does, but are there situations where companies are paying for flights and hotel costs of other reviewers with the expectation of a video/article being produced? (EDIT: I’ve seen confirm...

Canon M6 Mark II HDMI & 10-bit Output?

I’m writing all of this down as in case sources disappear and I want to reference M6ii HDMI-out information in the future.  So this is not by any means a definitive source but rather a jumble of information I’m putting together in the moment. The “HDMI info disp” setting to select clean output mode. There is one webpage I know about that mentioned the Canon EOS M6 Mark II supports clean HDMI output in 10-bit 4:2:2. I don’t think the page exists any longer on Canon USA’s website because the old link no longer works after a redesign. https://youtu.be/_UT9u0XVn5U However it does currently exist on the Internet Archive . Here’s the important quote from that webpage:  HDMI recording: Menu-selected user choices for HDMI output with info (images recorded to the SD card); Clean 4K output, or Clean Full HD output. With clean output, compatible HDMI recorders can be connected with appropriate HDMI cords. During Clean HDMI out, video is not recorded to an in-camera SD card. With compatib...