Cleaning up my photo archives

I have taken a lot of photos over the years and things have just piled up and I’ve amassed about 2TB worth of images.

In an effort to get organized, I decided the first step is to reduce the number of images by finding duplicates and also getting rid of the RAW files (CR2, DNG, TIF).

Step One: Removing RAW files

I’ve created a script that will recursively process files in my photo storage directory and convert RAW files to JPEG and then go through and remove the RAW files. I was able to free up about 500GB of storage space by removing the RAW files.

Mogrify is required and is what I use to convert and preserve time stamp as I will later organize photos by date/time.

Convert

@echo off

call :treeProcess
goto :eof

:treeProcess
echo "%CD%"
for %%f in (*.cr2) do (
if not exist "%%~nf.jpeg" (
echo %%f
mogrify -format jpeg -quality 75 -define preserve-timestamp=true "%%f"
)
)
for /D %%d in (*) do (
cd %%d
call :treeProcess
cd ..
)

Cleanup

@echo off

call :treeProcess
goto :eof

:treeProcess
echo "%CD%"
for %%f in (*.cr2) do (
if exist "%%~nf.jpeg" (
echo deleting "%%f"
del /s /f "%%f"
) else (
echo WARN found RAW but no converted JPEG "%%f"
)
)
for /D %%d in (*) do (
cd %%d
call :treeProcess
cd ..
)

I did these for my DNG and TIF files also.

Step Two: Cleaning up Duplicates

For this task, I found a tool called czkawkas and wrote a little about it here. It works well. This process freed up an additional ~10GB. So far, about 512GB of removed unnecessary images.

Giving immich a go on about 200k photos

In the never ending quest to find a photo gallery software to access my photo archive (and possibly synchronize my iPhone to it), I’m now testing Immich in a docker on Windows 11. I’m using an external library instead of uploading the images, which is an 8TB standard disk, so I expect it to be a bit slow. Docker is running, and its storage for thumbnails, on an SSD.

Update 6/20/24

The first phase of ingesting the external library is complete, the next phase will be all the smartphone photos which is on different media. Interesting on the external library that the storage space isn’t showing.

Surgery: Day After

Surgery went well.  I have been home trying to relax.  Pain is minimal for now and being maintained by 200-400mg Ibuprofen.  Haven’t had to break into the Vicodin yet, so that’s good!
Eating and drinking is not going well.  I have manage to get down about 30oz. of gatorade since the day of surgery.  I did get about 8oz. of chicken noodle soup broth down and a few ounces of water as well.

I am going to force myself to finish this gatorade and start a new one as well as get some food in my system.

Pictures to come soon.

Surgery

Wednesday morning I will undergo some much needed oral surgery.  I will be off work and away from most of the tech world until Monday.

I hope recovery is speedy.  I will try to update on my progress through the coming days.  The entire surgery should only take about an hour provided all goes well.