andrewgremlich / photo-organizer

Organize photos quickly based off of dates in a folder hierarchy
MIT License
0 stars 0 forks source link

Photo Organizer

DEPRECATED for Media Organizer.

Need an organizer for your media content on the computer? Run this!

Features

Dependencies

CLI usage

To quickly organize photos in the target folder, run the following command to output them into the default destination directory.

photo_organizer --target test-media

To add a destination folder for all the organized photos, add the --dest <DEST_FOLDER> flag to the end.

While developing with cargo, forward the flags.

cargo run -- --target test-photos

Supports organizing JPG (jpeg, jpg, JPEG), HEIC (heic), and PNG (png) image files and their variants.

Lib usage

// Take an image path and return the exif date of the image
pub fn read_photo_creation_date(path_str: &str) -> String

// Take a video path and return the FFMPEG creatioon date.
pub fn read_video_creation_date(path_str: &str) -> String

// Sort all the supported media files in a directory.
// Note: will default folder "photos"
pub fn sorter(dir_str: &str)

Future development