Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Sep 25, 2024
1 parent f3b7aca commit eebf20f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
# Bulk image metadata setter
# Bulk image Exif metadata

Add date to image metadata when missing.

Date parsed from file name.

```bash
Usage: set_date_image_metadata <PATH>
Add date to image Exif metadata when missing

Usage: set_date_image_metadata [OPTIONS] <PATH>

Arguments:
<PATH> The path to the file to read
<PATH> The path to the base directory

Options:
-h, --help Print help
-v, --verbose... Increase logging verbosity
-q, --quiet... Decrease logging verbosity
-h, --help Print help
```

Display the last modification time of FILE
Display Exif metadata

```
date -r <filename> "+%d-%m-%Y %H:%M:%S"
sudo apt install exif
exif picture.jpg
```
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ mod datetime_tag_parser;
mod datetime_tag_writer;
mod stats;

/// Search for a pattern in a file and change modification time from the filename
/// Add date to image Exif metadata when missing.
#[derive(Parser)]
struct Cli {
#[command(flatten)]
verbose: clap_verbosity_flag::Verbosity,

/// The path to the file to read
/// The path to the base directory
path: std::path::PathBuf,
}

Expand Down

0 comments on commit eebf20f

Please sign in to comment.