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

Nikon Z5ii Announced and My Thoughts vs the Original Z5

The Nikon Z5ii was announced recently. I haven't actually used this new camera myself, so keep that in mind. This is going to be mostly me looking at the specs and comparing it to the original Nikon Z5, which I've been using for a few years now. The original Nikon Z5 camera. Overall, the original Z5 isn't a bad camera. I've gotten it to a point where it works how I want it to and it's reliable for what I do.  My main use case is often anime and comic conventions, going there and taking photos of people in cosplay. I usually use the 40mm f/2 lens on the Z5, and it works well for that.  First-person view using the Nikon Z5 at an anime convention. Nikon Z5ii vs Z5: The Spec Sheet Comparison  Nikon has a handy comparison section on their Z5ii page, so let's break down some key differences based on that and my experience with the original. Nikon's website comparing the Z5ii and the original Z5 specifications. First up, the sensor. The Z5ii gets a backside-illumi...

Xenvo Smartphone Lens Kit Overview

I recently took a look at the Xenvo "Ultimate Smartphone Lens Kit," an add-on system designed to enhance your phone's camera capabilities. I purchased this myself; it wasn't sent to me, and I wanted to share my experiences using it. The kit aims to give you both wider angle shots and detailed macro photos using a clip-on lens system. Let's see what's included and how well it works. The Xenvo "Ultimate Smartphone Lens" Kit packaging. What's in the Box? Opening the box reveals the core components: the lens system itself, which consists of a 15x macro lens and a 0.45x wide-angle lens attachment. It's important to note that the wide-angle piece needs to be screwed onto the macro lens to function correctly; using the wide-angle part alone doesn't really produce a usable image. Inside the box: the lens, case, and accessories. You also get a plastic clip mount to attach the lens assembly to your phone. Alongside the lenses, Xenvo includes severa...

Nikon D3500 Hands-On And Opinion

Today we are taking a look at the entry level standard F-mount Nikon DSLR in their line-up. This is the latest iteration in their D3000 series of cameras started in 2009.  With lower cost DSLR we can expect certain features like FP sync not being included as well as fewer direct control dials and other buttons. For this iteration it comes with a 24.2 megapixel DX (APS-C) sensor with a sensitivity range of 100 to 25600.  My video on the camera. Get the Nikon D3500 DSLR Camera through my links: Amazon.com , BHPhotoVideo.com , Used on KEH.com , Walmart.com , and eBay.com As an affiliate of these shops, I earn from qualifying purchases!  The D3500’s sensor is visible in cleaning mode. There is no shake reduction in the camera, but the kit lens does have VR. The standard optical viewfinder has 95% frame coverage with a 0.85x magnification.  The DSLR focusing system is the 11-point Multi-CAM 1000 autofocus sensor module with TTL phase detection giving you a detection ran...