Skip to content

plexx-dev/exif-rewriter-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exif-rewriter-rs 🚀

Rust

ASync JPG and PNG filenames with DateTimeOriginal EXIF metadata.

Target Format

All operations use the format: YYYYMMDD_HHMMSS.jpg (Example: 20231225_183000.jpg)

Usage

cargo run --release -- <FOLDER> --mode <MODE> [FLAGS]

Modes (-m)

    to-name: Reads EXIF -> Renames file to YYYYMMDD_HHMMSS.jpg.

    to-exif: Reads YYYYMMDD_HHMMSS from filename -> Writes to EXIF.

Flags

    -d, --dry-run: Preview changes without modifying files.

    -c, --copy: Create a new file (copy) instead of renaming or overwriting.

Examples

Rename based on EXIF (Preview only):

cargo run --release -- ./photos -m to-name -d

Set EXIF from filename (Create copies):

cargo run --release -- ./photos -m to-exif -c

About

rewrite filenames based on the exif data

Resources

License

Stars

Watchers

Forks

Contributors