after investigating the Luminar catalog folder I noticed that the biggest file space consumer was the resource folder (Luminar Catalog\CachedDocuments\resources). In my case 13,2 GB. After analyzing the files inside the folder I discovered that these files are a) LUT (.lut files) files which are used during editing and b) mask information if you use Accent AI with a brush for example (.miplcompressedmaskdata files). It looks like that Luminar generates one file for each editing step (LUT or mask). I think/guess this is done due to performance and to provide editing history steps for each picture. Fine for me but it consumes lots of disk space :(
Especially if you own a Surface/Laptop or just have a small SSD this is not really optimal. Sure, previews can be deleted (and will be created new after viewing a photo) as described here: https://community.skylum.com/hc/en-us/community/posts/360044100991-Luminar-Catalog-keeps-growing-regardless-of-photo-count-
But this will not cleanup the main consumer which is the resource folder. So I thought of solving this with a different approach. Deleting files was not an option because I would loose my editing history. I analyzed the files a second time and discovered that many files (especially LUT files) are the same, just the filename was different. So I wrote a small analyzer to create a hash for each file content and refer it to the file is was created from. I landed up with this:
This means that I had a maximum of 1557 files with the same content (I even filtered out hashes with a file count less then 30)! As mentioned above, deleting files was not option. So I thought it would be nice if I can refer all duplicates to only one file. Some kind of deduplication if you want ;) On a Windows OS this can be achieved by using soft or sym links https://en.wikipedia.org/wiki/Symbolic_link#NTFS_symbolic_link
I upgraded my Luminar 3 Helper https://community.skylum.com/hc/en-us/community/posts/360048117072-Workspace-Camera-Profiles-LUT-and-Collection-Editor with a resource cleaner to reduce the folder size. Reducing the folder is achieved with the following steps:
1. Folder/File analysis
2. Hash creation of each file
3. Sorting/Refering files to hashes
4. Creation of reference files. Those files will be the "source" of created softlinks
5. Deletion of duplicate files and creation of a softlink instead
After analyzing the folder Luminar 3 Helper will present the analysis result:
After running the cleanup my folder look like this:
Luminar will work normal (tested on different devices with Windows 10 1903 latest updates). Luminar uses .Net framework and therefore follows "Microsoft rules" of accessing files which makes the trick work perfectly ;)
Here is a short demo video https://youtu.be/LrAdnAa8LfQ
As usual thanks to Skylum for making great software and let me create my tools!
EDIT: After some fine tuning I managed it to reduce my 13,2 GB cached resources folder to 65 MB! I also added a feature which takes care of already created symlinks. This means that you can run it multiple times :)
EDIT2: I updated my tool. It now supports Luminar Flex. Download link updated.
Please sign in to leave a comment.