- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| archive.sh | ||
| finalize.sh | ||
| LICENSE | ||
| magick_watermark.sh | ||
| Readme.md | ||
| sort_and_rename.sh | ||
Description
This repository contains a number of simple zsh scripts to handle bulk and repetitive actions in photography on a mac. It provides, essentially, 4 scripts with nice user experiences. Additionally, it provides a wrapper script that groups similar scripts.
Scripts
1: make_filmroll.sh
This script provides a simple interface for creating a specific folder structure that is useful for photography, and tagged with (at minimum) "Film Roll" (via MacOSx "tags").
2: sort_and_rename.sh
This script does two basic things. First, it provides an opportunity to modify the Author in the EXIF metadata of a provided directory of folders via exiftool. Then, it sequentially sorts and renames image files by capture time.
3: magick_watermark.sh
This script applies a watermark (via a .png) to a directory of images via imagemagick.
4: finalize.sh
This script executes sort_and_rename.sh and magick_watermark.sh sequentially, sanitizing output and cleaning any resulting artifacts. Further notifies the user via terminal-notifier.
5: archive.sh
This script is simply a wrapper to rsync that provides some environment variable capabilities to the typical rsync workflow. See the script's help for more.
TODO
- Image importing via
make_filmroll.sh. - Direct executable TUI for full workflow.
- Client image upload & notification script (via resend?).
- Filmroll "discovery?"
Environment Variables
The provided scripts will attempt to load a .env file from the current working directory to obtain the following environment variables:
RSYNC_PATH: The rsync compatible path to sync files too (viaarchive.sh). I.e,user@host:path/to/resultAUTHOR_NAME: Sets the metadata author name (IPTC:ByLine) insort_and_rename.sh.
Common Dependencies:
- revovler: spinners
- terminal-notifier: MacOSx notification system integration
- brew: MacOSx package manager
Note: each script attempts to resolve its own dependencies via brew