#媒体文件 #EXIF #重命名 #图像 #复制 #链接 #移动

应用程序 exif-namer

批量复制/链接/重命名图像和其他媒体文件集的实用程序

2 个版本

0.1.2 2024年8月4日
0.1.1 2024年8月4日

144图像

Download history 109/week @ 2024-07-29 81/week @ 2024-08-05

每月190 次下载

Apache-2.0

28KB
668 代码行

exif-namer

批量复制/链接/重命名图像和其他媒体文件集的实用程序

Usage: exif-namer [OPTIONS] [SOURCES]...

Arguments:
  [SOURCES]...  A list of glob patterns, each identifying a set of files to inspect and rename

Options:
  -d, --destination <DESTINATION>
          Destination string template. Uses Handlebars syntax [default: {{SysPath}}/{{SysName}}_{{SysIdx}}{{SysDotExt}}]
  -m, --mode <MODE>
          [default: mv] [possible values: mv, cp, symlink, ln, info]
  -t, --timestamp-format <TIMESTAMP_FORMAT>
          Format string for datetime type properties. Uses chrono and POSIX date syntax [default: %Y%m%d_%H%M%S]
  -v, --verbose
          Log more debugging information.
  -n, --dry-run
          Do not apply any changes to the filesystem
  -f, --force
          Force overwrite if destination file exists
      --no-strict
          Disable Handlebars strict mode
      --no-sha1
          Disable (slow) sha1 hash calculation
      --no-exif
          Disable exif parsing
      --delete-empty-dirs
          When moving files, delete the source folder if empty
      --force-absolute-symlinks
          Convert symlink targets to absolute path even if a relative path is available
      --max-display-len <MAX_DISPLAY_LEN>
          Truncate long values in -m info. Set to 0 for infinite length [default: 100]
      --idx-start <IDX_START>
          Index counter start [default: 0]
      --idx-width <IDX_WIDTH>
          Width of zero-padding for index counter [default: 6]
      --invalid-characters <INVALID_CHARACTERS>
          Regex pattern which identifies invalid characters or sequences in properties [default: [^\w\+\-]+]
      --replacement <REPLACEMENT>
          Replacement for invalid characters or sequences in properties [default: _]
  -h, --help
          Print help (see more with '--help')
  -V, --version
          Print version

依赖项

~10–19MB
~260K SLoC