jannik / photo-organizer
A small tool to organize (RAW + exported) photos
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jannik/photo-organizer
Requires
- php: >= 8.2
- ext-json: *
- symfony/console: ^6.3
- symfony/filesystem: ^6.3
- symfony/finder: ^6.3
- symfony/process: ^6.3
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8
- phpunit/phpunit: ^10.3
- roave/security-advisories: dev-latest
- symfony/var-dumper: ^6.3
README
This tool takes a directory of photos and sorts them.
- It sorts all RAW photos in a subdirectory _RAWand leaves all other files in the root directory.
- It also renames all files to YYYY-MM-DD HH-MM-SS - filename.ext.
This makes it easy to merge files from different cameras in a single list.
Installation
Install it via composer:
composer global require jannik/photo-organizer
You also need to install exiftool and have it in the PATH.
Usage
Add your global composer binaries to the PATH and call them:
photos organize photos clean-raws
Commands
organize
Organizes all photos in the structure described above.
clean-raws
Finds all RAW photos without and exported file and offers to move it to the trash.
Trash
When any file is moved to the trash, that is a subdirectory in the current directory called _TRASH.
This directory is excluded from all other commands.
RAW
Currently only .RAF files are detected as RAWs, however that list is easily extendable in PhotoFactory::RAW_FILE_EXTENSIONS.