Bash script to generate static html photo albums
- Shell 67.8%
- Go Template 25.8%
- Makefile 6.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| bin | ||
| share/templates/default | ||
| src | ||
| .version | ||
| changelog | ||
| Makefile | ||
| README.md | ||
photoalbum
photoalbum is a minimal Bash script for Unix like operating systems (such as Linux) to generate static web photo albums. The resulting static photo album is pure HTML+CSS (without any JavaScript!).
Note, this project is done. For a continuation see shuriken.sh.
Installation
Run the following commands to install it:
make
sudo make install
Also, as a requirement, ImageMagick needs to be installed. The script prefers the
modern magick command and falls back to convert when needed.
Usage
photoalbum clean|generate|version [rcfile] photoalbum
photoalbum makemake
clean: Cleans up the workspacegenerate: Generates the static photo albumversion: Prints out the versionmakemake: Creates a Makefile and photoalbumrc in the current working directory.
Example usage
- See if /etc/default/photoalbum fits your needs. If not, run
photoalbum makemake, which will create aphotoalbumrcfile in the current directory. - Adjust the
incomingpath inphotoalbum. Point to a directory with all the pictures in it. - Run
make(orphotoalbum generate) to generate it. - Distribute the
./distdirectory to a static web server. - Clean the mess up with
make cleanorphotoalbum clean
HTML templates
Poke around in this source directory. You will find a bunch of Bash-HTML template files. You could tweak them to your likings.