Crates.io | image-date-fixer |
lib.rs | image-date-fixer |
version | |
source | src |
created_at | 2025-04-03 17:42:51.004822+00 |
updated_at | 2025-04-03 17:42:51.004822+00 |
description | Simple tool for fixing wrong modified time stamps and adding missing EXIF data to existing images! |
homepage | https://github.com/raldone01/image-date-fixer |
repository | https://github.com/raldone01/image-date-fixer |
max_upload_size | |
id | 1618747 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
image-date-fixer
image-date-fixer
is a command-line tool written in Rust for restoring missing exif data from the filepath.
This can be very useful for tagging photos received from friends or family, or for photos from legacy devices that do not support or strip exif data.
⚠️ Warning: Always back up your files before running any script that modifies them. Test the script with the
--dry-run
option first to ensure it behaves as expected.
IMG_YYYYMMDD_HHMMSS.jpg
)YYYY-MM-DD_HHMMSS.jpg
)Screenshot_YYYYMMDD-HHMMSS.jpg
)IMG-YYYYMMDD-WAXXXX.jpg
)--print-stats
will show a summary of the changes made--help
to see all available optionsMake sure to add ~/.cargo/bin
to your PATH
.
cargo install image-date-fixer
image-date-fixer --print-stats --ignore-minor-exif-errors --log-level INFO --fix-future-modified-times 2 --fix-future-exif-dates 2 --files /my_folder_with_images --exclude-files /my_folder_with_images/ignored --dry-run
git clone <this repo>
cd image-date-fixer
cargo build --release
./target/release/image-date-fixer --print-stats --ignore-minor-exif-errors --log-level INFO --fix-future-modified-times 2 --fix-future-exif-dates 2 --files /my_folder_with_images --exclude-files /my_folder_with_images/ignored --dry-run
We welcome contributions to improve compatibility with more filename formats! If you encounter a filename format that isn't currently supported, consider submitting a pull request or opening an issue.
In particular, we are interested in:
libexif
for a massive speedup.Your contributions help make image-date-fixer
more robust and useful for everyone!
This project is released under either:
at your choosing.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.