PhotoSort
A Windows app for culling a day's photos fast, from the keyboard or an Xbox controller, then copying only the keepers' RAW files off the memory card.

The problem
As a photographer I’m always dealing with big files. After a day out, I’m left with a whole bunch of raws that I need to sort through and eventually edit. Before I always found myself importing and moving around a bunch of photos that I didn’t even end up editing or keeping. At first I created a workflow, that involved taking a duplicate of every photo as a jpeg, culling the jpegs then with Python scripts copying over the relevant RAWs. This worked but broke easily and still required a lot of manual steps. PhotoSort turns that all into one workflow: import the JPGs, cull them, then export only the RAWs of the photos I picked.
How it works
- Import from the card. PhotoSort lists the card’s photos by capture day and copies only the JPGs
into a dated folder in my library (
2026_10_04 Description). The RAWs stay on the card. It skips anything already imported and builds grid thumbnails while it copies. - Cull. I step through the shoot and mark each photo as a Pick, a Reject or neither. Marks save as I go.
- Export. PhotoSort copies each Pick’s RAW from the card and checks every copy against a checksum. It finds the card by its volume serial, even if it comes back under a new drive letter. It can rename the RAWs in capture order, then offers to send the JPGs to the Recycle Bin. What’s left is a folder of just the keepers’ RAWs.
PhotoSort never writes to the card, and it only ever deletes to the Recycle Bin.
Culling
Culling happens in a filmstrip view (one big photo with its neighbors underneath) or a grid. A, S and D pick, reject or clear a mark, and the arrows move. Z zooms to 100% to check focus, and R filters to hide the rejects or show only the picks. With auto-advance on, every mark moves straight to the next photo.
It also works with an Xbox controller: A, B and X mark, the D-pad moves,
and holding the right trigger peeks at 100%. Press ? for every key and button.
What I learned
Before writing the app, I researched and benchmarked the options on my own laptop.
- Speed comes from design, not the language. Every stack I looked at (Python with Qt, C#, Electron, Tauri) ends up using the same JPEG decoders. On my laptop, one full-size Canon R8 JPEG takes about 400 ms to decode in all of them. Smooth culling comes from decoding the next photos ahead of time on several threads and keeping a bounded cache of screen-sized copies.
- Memory sets the limit. One decoded 6000×4000 photo is about 96 MB, so the app keeps screen-sized copies and decodes full resolution only for 100% zoom.
- Flying through a shoot needs a trick. Holding the arrow key fires 10–30 presses per second, faster than any decoder. While a key is held, PhotoSort shows the tiny preview embedded in each JPG (3–5 ms to read). It only decodes the photo you stop on, which is how Lightroom and Photo Mechanic behave.
- The controller needed raw Windows APIs. Qt 6 dropped its gamepad module, so PhotoSort reads the controller through XInput directly.
The code is open source (MIT) on GitHub, with a short glossary and the research notes alongside it.