OS X's iPhoto software had a feature that exported photos to a static web site. iPhoto was discontinued in 2015. Its replacement, Photos, does not have that feature. imagesite approximates that feature.
imagesite HTML is similar, but not identical, to iPhoto's. imagesite's HTML is amateurishly styled, although somewhat less so than iPhoto's. On the bright side, imagesite's output includes an image's tags as well as its title and description.
imagesite works with Ruby 2.3.7, which comes with OS X 10.12 (Sierra), and with later versions of Ruby. If your Mac has an older OS X, imagesite may or may not work with its built-in Ruby. If not, you may be able to install a newer Ruby on your Mac to use with imagesite.
If you're using the Ruby that comes with OS X,
$ sudo gem install imagesite
If you're using a Ruby that you installed yourself,
sudomay or may not be appropriate.
Edit and annotate your images in Photos as usual.
Export your images from Photos (select them and choose File
▶Export ▶Export Photos…, or type ⇧⌘E).
Run imagesite in Terminal:
$ imagesite -t 'Images' -o ~/Desktop/images ~/Desktop/images-export/*
'Images'with whatever you'd like the title of the image set to be,
~/Desktop/imageswith whatever you'd like the output directory to be, and
~/Desktop/images-exportwith the directory into which you exported your images from Photos.
imagesite puts photos in its output in the order in which they're given to it
on the command line. Unix, unlike Finder, sorts files whose names begin with
numbers (such as those created by Photos' Sequential filename export option)
in a way that requires leading zeros. You may, therefore, need to add
leading zeros to your exported image filenames for
* to list them in the order
Customizing the output
imagesite -h to see more options.
imagesite's HTML is largely determined by two template files. To change them, run the following command to see where they are
$ gem contents imagesite
and edit them to your liking.
imagesite is available as open source under the terms of the MIT License.