fredmiranda.com
Login

Moderated by: Fred Miranda
Username  

  New fredmiranda.com Mobile Site
  New Feature: SMS Notification alert
  New Feature: Buy & Sell Watchlist
  

FM Forums | General Gear-talk | Join Upload & Sell

  

Anyone used AI, like Claude Code, to build Photo Management app

  
 
patotts
Offline
• • • •
Upload & Sell: Off
p.1 #1 · Anyone used AI, like Claude Code, to build Photo Management app


I don't know about you, but I have always found image management to be a hassle. So many cameras, models, RAW formats over the years, stored on various drives. I have tried to keep a Master, images stored by years and then dates as a Master Archive, then with backup, but it is never 100%. For example, as I go through some old Lightroom catalogues, I find that LR has made double imports, or LR has created duplicates over time. I don't need or want 2-4 copies of certain images, seemingly randomly over the years.

I haven't found a solution that really works in terms of identifying duplicates and managing it over time.

Enter Claude Code. I am writing an application in Phyton to do just that. Give me an inventory of all photos, in all folders - on the computer SSD, external SSD and Synology backup solution. The goal is not only to find any and all duplicates but also take the action to move those into a separate folder (which I can then keep as an extra backup on an external SSD just in case machine or human made an error. The next step is to create a Master File all my images, from all disks and devices, to create a Master folder where every single images in stored and organized by Yearly folders, then by date in the image. This will work reasonably well with all the digital images, scanned film images is a bigger issue, but will be solved eventually.

Then the goal is to have this Master file to work out of, and keep it on an external SSD, then have copies continously in sync, with exact and ongoing copies stores off-site and on the Synology.

Worthwhile project? Doable? Anyone undertaken something similar?



Jun 06, 2026 at 07:03 AM
patotts
Offline
• • • •
Upload & Sell: Off
p.1 #2 · Anyone used AI, like Claude Code, to build Photo Management app


It could be worth noticing that

a) I don't have any Python coding skills, Claude helped me select and install python, along with needed scripts and libraries, on my Mac

b) Once it is all specified and created, the python script runs locally on your machine - there are no extra costs because the it doesn't need to connect to the cloud, no API calls, etc.

Essentially, I have created an app, but it doesn't have a GUI, buttons or drop downs - it runs scripts via Terminal function.

Again, I am not an engineer or all that technical - just frustrated with all the issues my master folders have compounded over years, rewriting and/or moving of image files by Lightroom, etc. It was time to clean this up.

Everything is running right now. It will take a few hours. I sure how this works! :-)



Jun 06, 2026 at 11:33 AM
johnvanr
Offline
• • • • •
Upload & Sell: On
p.1 #3 · Anyone used AI, like Claude Code, to build Photo Management app


I trust neither myself nor AI to deal with something I’m too afraid to screw up.

While, like you, I have duplicates of files, my main issue is the fact that my LR catalogues and images are pretty well organized and backed up, the images in Apple’s Photo app are stored in the typical opaque manner Apple seems to love and I hate. This makes it hard to have one Master folder with all images I care about.

I hope your effort succeeds and if you find a solution for what I described, I’m curious.

As a sidenote, the only times I’ve screwed up my files and deleted a bunch by mistake was always when I thought I was consolidating them and accidentally deleted or ‘misplaced’ them. It’s a good thing I have Backblaze with backups being kept for one year…



Jun 06, 2026 at 12:00 PM
jeffbuzz
Offline
• • • •
Upload & Sell: On
p.1 #4 · Anyone used AI, like Claude Code, to build Photo Management app


This definitely sounds like a useful project. I would caution you to backup and isolate all your data before letting an AI coding agent run wild on your machine. This is doubly true if you are not an comfortable reviewing the AI generated code for potential flaws. Claude should be treated like a junior level developer who is very clever but needs adult supervision to keep him on target.


Jun 07, 2026 at 10:34 AM
patotts
Offline
• • • •
Upload & Sell: Off
p.1 #5 · Anyone used AI, like Claude Code, to build Photo Management app


Luckily I have double and tripple backups :-)


Jun 07, 2026 at 10:51 AM
 


Search in Used Dept. 

rscheffler
Offline
• • • • • •
Upload & Sell: Off
p.1 #6 · Anyone used AI, like Claude Code, to build Photo Management app


With your AI created app, be sure it also moves XMP sidecar files with their corresponding RAW files, otherwise you may lose relevant metadata such as caption information you may have added and/or LR edits.

Theoretically all of this can be done with off the shelf software. I'm not super well versed with DAM applications but I would approach your situation in the following way with the apps I currently use:

I would mount each drive and then open it as one massive contact sheet in Photo Mechanic (or open each major image folder as a contact sheet). I would then copy (not move, which deletes the files at the original location) all of the images to a fresh, high capacity drive using the {datesort} copy variable, which would put each image into a dated folder (YYYYMMDD) on the destination drive.

As you progress through all of your drives, the destination drive will fill with folders for each YYYYMMDD, which you can then put into year and month folders. Well, you could have Photo Mechanic do this as part of the copy process by describing the copy path to the new drive as {year4}/{month0}/{day0} where "/" creates a new subdirectory (new sub-level of folders).

Once you've done this, you could easily find duplicates manually because each dated folder will contain all the image files for that date and any duplicates. PM doesn't overwrite files with the same name but instead appends A, B, C to the end of the file name. This assumes duplicate images across various drives are all named the same. If they're not, you can still identify them visually by doing a contact sheet sort by capture time. You could, if you wanted to, rename them all with a string such as {year4}{month0}{day0}-{hour24}{minute}{second}{subsecond} and duplicates will be appended A, B, C, etc. You'd still have to confirm if each set of duplicates are all the exact same file via file size comparison, etc. If they have XMP sidecar files, you'd want to know if they're all the same and if not, which has the most recent editing metadata embedded in it.

I also use an app called NeoFinder for finding where all my image files are located. It's a DAM app and I think it can also find and manage duplicates, but I have never used it to eliminate duplicates. I use it to verify that files/folders across various drives are the same size and therefore properly backed up.

The above however doesn't touch on preserving LR edits in RAW files... I believe making metadata edits external to LR and then reimporting those files into LR may wipe the previous LR edit information saved in the XMPs, but I'd have to test this to confirm.

If reorganizing the files in the new folder system doesn't change anything with the files themselves, that shouldn't affect LR edit metadata in the XMPs and it would be simplest to make a new LR catalog. Otherwise if you want to preserve the current catalog with its edits histories, you'd have to point LR to the new location for each existing folder in the LR catalog. I think before I'd start moving files around, I'd first do a metadata save for every image in the LR catalog to be sure it's saved to each original file (or its corresponding XMP file).

With regard to film scans, software such as LR should allow you to edit the capture date/time information. PM definitely can do this. DAM software likely as well.



Jun 07, 2026 at 07:37 PM
bwcolor
Offline
• • • •
Upload & Sell: Off
p.1 #7 · Anyone used AI, like Claude Code, to build Photo Management app


I just had Grok help me setup and move data to a Synology NAS and UGreen NAS and we (can we be used when including an AI agent?) spent days going down the rabbit hole to dead ends and I suggested just as many paths to solutions as Grok. For example, I wanted my family members to be able to view NAS videos from anywhere and offload all of their photos to the NAS and yet view them on their phone as if the images were local. Well, the good news is that my daughters are now in Japan and all works, but so many dead ends. Next, I wanted to pull images from 50TB of backups from at least twenty computers over two decades and all backups from all family devices and then I wanted to eliminate duplicates and use the final collection to restart Lightroom Classic. I discovered that many programs and processes did not function as documented. It really was maddening. Those two projects took me seven days per week for two months.. Maybe I’m just a technical moron, but AI isn’t infallible and many things aren’t documented, or like running Terminal on different devices, there really isn’t a standard. Many commands just don’t work on certain versions of Linux..etc. To make it worse, moving TBs of data and then find out that things aren’t working is not life affirming..Good Luck.


Jun 07, 2026 at 08:49 PM
Oscarsmadness
Offline
• • •
Upload & Sell: Off
p.1 #8 · Anyone used AI, like Claude Code, to build Photo Management app


If you can make this work on a sustainable, ongoing basis, congrats. I personally don't trust AI to do that on my computer.
However, the old wisdom says you never know what's possible until you try. Im going to follow this thread. I might learn something.



Jun 07, 2026 at 10:01 PM
Braindrain232
Offline
• •
Upload & Sell: Off
p.1 #9 · Anyone used AI, like Claude Code, to build Photo Management app



bwcolor wrote:
Maybe I’m just a technical moron, but AI isn’t infallible and many things aren’t documented, or like running Terminal on different devices, there really isn’t a standard.


AI isn't actuslly intelligent. It just regurgitates what it found in a bajillion Google-like searches. But there really isn't any true intelligence behind it.



Jun 07, 2026 at 10:05 PM
patotts
Offline
• • • •
Upload & Sell: Off
p.1 #10 · Anyone used AI, like Claude Code, to build Photo Management app


Thanks for the input so far.

@rscheffler - XMP sidecar - exactly one of those points that you might be taking for granted, thinking it is obvious, but you have to give clear instruction to Claude helping your write the script. There have been several things I forgot to give instructions about, but the good thing is that I have updated the script as we run along. And thanks for your input on alternative ways to do this project - should have talked to you beforehand... ;-)

Interesting what you say about PM. I haven't used it. I have tried some other solution, I haven't found anything so far that can do the type of inventory against drives, specific folder, etc and then, on my command, match it against another storage point, and reconcile them (move missing files back and forward between 2-3 places, move dupes over to a different folder, nothing gets deleted).

Regarding 'running AI on my machine'... to those folks, it really isn't AI running on your machine. AI, in this case Claude Code, is helping you to write and run Python scripts to do what you want. There is no cloud storage, API calls, or an AI agent running around on your machine raking havoc.

I would gladly pay for a software to do this, get real support, etc but I didn't quite find the right tools, one that didn't involve me spending 3 days infront of a screen drag and dropping files manually back and forward.



Jun 08, 2026 at 02:47 AM







FM Forums | General Gear-talk | Join Upload & Sell

    
 

You are not logged in. Login or Register