Just organize your photos in a directory tree and identify a thumbnail for each directory.
Elbum generates size-optimized images for fast downloads and a dynamic webapp to render the album, laid out optimally for any screen size.
Host the result anywhere that can serve a static website.
Try out the example album at https://jerith666.github.io/elbum-demo/.
Names of directories and images will be used when rendering the album.
Create a symlink named thumbnail in each directory, pointing to the thumbnail that should be used when rendering a preview of that directory in its parent.
Clone this repository with --recurse-submodules and run nix-build.
Run ./result/elbum /path/to/your/directory/of/images /path/to/generated/album.
When copying /path/to/generated/album to your hosting provider, be sure that symlinks are resolved.
Elbum's front-end is written in Elm. The code that generates the album is written in Haskell.
Use nix-shell (ideally via direnv and lorri) to get all the tools you need to hack on Elbum. In particular, this provides idea-community with the Elm plugin for editing the Elm code and vscodium with the Haskell Language Server for editing the Haskell code.
The first thing to look at is AlbumTypes.hs, which defines the basic datatypes at the core of Elbum. elm-bridge is used to derive Elm types and JSON codecs for these types.
The code lives in src/generator/.
gen-album.hs contains main, and relies on ShrinkImage.hs to create smaller versions of the album's images.
The code lives in src/client/.
Before hacking on the Elm code, you must run nix-build -o Album.elm.dir album-types-gen.nix in the src/client/ directory. This generates Album.elm from AlbumTypes.hs.
Elbum's general approach is inspired by http://bins.sautret.org/, a now-defunct photo album generator written in Perl.