# Shellery Simple SSG to create dynamic gallery one-pagers in your shell! Shell+Gallery [Issue Tracker and Requests](https://git.uphillsecurity.com/cf7/shellery/issues) - Status: Beta - Instance/ Demo: [schief-117.com](https://schief-117.com/) --- ## Features **Available**: - Simple use, single dependency (exiftool) - Removes EXIF/GPS metadata from published images by default - Configurable title and optional footer via environment variables - no Javascript - Lightbox of image with anchor - Order of images via filename - Container available - Simple to modify (Pictures and Templates) **Ideas**: - check file formats - conf file for options - anonymize file names - sections via file names **Not planned**: --- ## Requirements - `bash` and GNU coreutils - [`exiftool`](https://exiftool.org/) - `apt install libimage-exiftool-perl` (Debian/Ubuntu) or `brew install exiftool` (macOS) Docker/Podman users need nothing on the host, exiftool is baked into the image. Building with `--keep-exif` / `STRIP_EXIF=0` does not require exiftool. --- ## Usage ### Docker / Podman ```bash mkdir -p images output podman run -v $(pwd)/images:/app/images -v $(pwd)/output:/app/output git.uphillsecurity.com/cf7/shellery:latest ``` ### Local - Clone - Put images into `./images/` - `./build.sh` - Check `./output/` Modify files accordingly. ### Docker Build Build and run: ```bash docker build -t localhost/shellery . docker run -v $(pwd)/images:/app/images -v $(pwd)/output:/app/output localhost/shellery ``` The generated gallery will be in `./output/index.html` ### Configuration All options can be set in a `.env` file, as environment variables, or as flags. `.env.example` lists every option with its default, so an unedited copy changes nothing: ```bash cp .env.example .env ``` `.env` is gitignored. Precedence is **flags > environment > `.env` > defaults**, so a `-e` value passed to the container still wins over the file. Point `ENV_FILE` at another path to use a different file. | Variable | Flag | Default | Effect | |---|---|---|---| | `GALLERY_TITLE` | `--title=TEXT` | `Gallery` | Page `