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

Viltrox AF FE 28mm f/4.5 VCM ASPH ED Lens Overview

Viltrox asked me if I wanted to take a look at this unique compact autofocus full-frame prime lens with a focal length of 28mm and a fixed f/4.5 aperture for Sony E-mount cameras. Viltrox agreed to my standard collaboration terms before sending me the lens.    In the video I talk about features, how it works in practice, and show photos I had taken on a photo walk with the Sony a7S as well as the APS-C a6000. Viltrox is starting this off as an Indiegogo campaign. They told me that it will eventually be sold through normal retailers: https://www.indiegogo.com/projects/viltrox-af-28mm-f4-5-fe-chips-size-ultra-thin-lens They said it will be $99 USD or 109 Euros with discounts during the crowdfunding period. Check out Indiegogo for details. I am not an affiliate of that website. You can check on the status of availability through my usual affiliates: B&H Photo Video Amazon As an affiliate of these shops, I earn from qualifying purchases!    The front of the lens. K...

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...

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 ...