This software aims to facilitate the clean-up of your unwanted images in your photo album that can take up a large amount of storage space.
photo_cleanup is designed to identify and optionally delete RAW files that do not have a corresponding .JPG/.JPEG in the same directory (or its subdirectories).
This means that all you need to do is to examine your images (jpg files), delete the ones you don't want to keep, run photo_cleanup that takes care of cleaning the RAW, and that's it!
Simply run:
./photo_cleanupDouble click on the exe file.
This will open a simple GUI, in which you can select the folder containing the images, and the RAW file extension. Click "Cleanup" to carry out cleaning the redundant RAW files.
python /path/to/photo_cleanup.py "path\to\your\photo\folder"💡 For Sony users: to clean up .ARW files: optionally add flag --extension ARW, which is default
💡 For Canon users: to clean up .CR2 files: add flag --extension CR2
💡 For Nikon users: to clean up .NEF files: add flag --extension NEF
-
Default mode: By default, the script will first list all RAW files that would be deleted without actually removing any files. This allows you to review the files before deletion.
-
Deleting mode: If you are sure you want to delete the listed RAW files directly, rerun the script with the
--deleteflag. Use it with caution, as it will permanently remove the raw files.
python photo_cleanup.py "path\to\your\photo\folder" --delete