Skip to content

Rename photos in given dir to their EXIF DateTimeOriginal. New filename will be in YYYYMMDD_hh24mmss format.

Notifications You must be signed in to change notification settings

pirafrank/rust_exif_renamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust EXIF Renamer

A dummy file renamer renaming JPEG files based on DateTimeOriginal in their EXIF metadata. Written in Rust.

How it works

It expects a single argument, the directory containing the JPEG files to rename.

Then it looks for the DateTimeOriginal field in the EXIF data, which typically stores the date and time the photo was taken.

If it finds that field, it parses the date and time of it, and renames the file accordingly using the YYYYMMDD_hh24mmss pattern.

If anything fails, it prints an error message and continues with the next file.

Build

cargo build --release

Install

cargo install --path .

Usage

exif-renamer somefolder

About

Rename photos in given dir to their EXIF DateTimeOriginal. New filename will be in YYYYMMDD_hh24mmss format.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages