Utility to remove unprocessed RAW files from a folder keeping only RAW files that yielded results
Project description
Overview
For photographers keeping every raw file captured can use a lot of space.
This utility allows a photographer to purge any unused raw files leaving
only the processed files with their associated raws.
The app trawls the input directory for raw and processed images. Where it finds a raw image with a numeric index that can't be found in the processed images it is marked for removal.
Any sequence of 3 to 6 (inc) numbers in the image filename is deemed as its index which is used to associate processed and raw images.
Processed images may also have a filename format with a range of indexes, e.g. IMG_01234-1236.jpg This processed file would be associated with IMG_01234.cr3, IMG_01235.cr3 and IMG_01236.cr3 raw images thus ensuring they are not deleted. This is useful for HDR or panoramic processed images.
For example, given the folder1 below:
folder1/
IMG_1000.cr3
IMG_1001.cr3
IMG_1002.cr3
IMG_1003.cr3
IMG_1004.cr3
Processed/
IMG_1000.jpg
IMG_1002-1003.jpg
Running praw folder1 -d would remove the IMG_1001.cr3 and
IMG_1004.cr3 raw images as they don't have associated processed images.
The resulting directory would be left as:
folder1/
IMG_1000.cr3
IMG_1002.cr3
IMG_1003.cr3
Processed/
IMG_1000.jpg
IMG_1002-1003.jpg
To install run pip install purgeraw
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PurgeRaw-1.0.5.tar.gz.
File metadata
- Download URL: PurgeRaw-1.0.5.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-48-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37efc8daa049fa115d654ed6c5c8e58867cab537b8ecc27715c120cc074f9709
|
|
| MD5 |
7e6cc74c4c053dd99c6c601e7ca512ed
|
|
| BLAKE2b-256 |
90da39752075076b89670dd5fe1ace413ac0a3b6b6a8bbef6baa7f8e442e372e
|
File details
Details for the file PurgeRaw-1.0.5-py3-none-any.whl.
File metadata
- Download URL: PurgeRaw-1.0.5-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-48-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
993b711004b31211d4279a2a0e0edfb3ec684cb5cbf673ffc8c67514e7c3165f
|
|
| MD5 |
45b085915aa2380dfd7691ee81358d1b
|
|
| BLAKE2b-256 |
aa08fcf09e0b76a95bc5d0484064f6031ea35cad64886ed021a3e1eb31282ffd
|