Sha256: 105cb46133d3157737a16f3d085841c8337c217d1fb0a833518af8bf2c3e5e96
Contents?: true
Size: 1.74 KB
Versions: 7
Compression:
Stored size: 1.74 KB
Contents
#!/usr/bin/env ruby # frozen_string_literal: true # encoding: UTF-8 # (c) ANB Andrew Bizyaev module PhTools tool_name = File.basename(__FILE__) require tool_name.to_s file_type = FILE_TYPE_IMAGE + FILE_TYPE_VIDEO + FILE_TYPE_AUDIO usage = <<~DOCOPT *************************************************** phtools - *Keep Your Photos In Order* (c) ANB *************************************************** #{tool_name} updates the input file's DateTimeOriginal (CreateDate) tags with the date-time encoded in the filename (date-time-in-the-name). The file should be renamed to phtools Standard Name before using this command (use phrename for this). This program uses external utility ExifTool created by Phil Harvey (http://www.sno.phy.queensu.ca/~phil/exiftool/). #{tool_name} acts as a 'sink' program meaning it expects the input files to be passed to STDIN, does its job on the files and produces no useful (for other pipe-optimized programs) output. In other words this command is intended to be used with other programs connected via input pipes as a last command in the pipe chain, e.g.: phls | phrename - a anb | #{tool_name} Usage: #{tool_name} [-N] [-D] #{tool_name} -h | --help #{tool_name} -v | --version Options: -N --no_run Dry-run mode means no run exiftool command, only generate script file 'exif_tagger_dto.txt'. User can check the script and manually run the command: `exiftool -@ exif_tagger_dto.txt` -D --debug Turn on debugging (verbose) mode -h --help Show this screen. -v --version Show version. DOCOPT PhTools.const_get(tool_name.capitalize).new(usage, file_type).run! end
Version data entries
7 entries across 7 versions & 1 rubygems