8

I am looking for a (command line) tool (preferably in Python) which generates a static picture gallery website from a folder of images.

The generated webpage should show along the photo the caption and description from the EXIF tags of the image. I assume the tool of choice would have output templates which can show caption and description of photos.

Additionally it would be great if the tool had a web theme with so called "responsive design", so that the generated web pages work well on smart phones, too.

First I found Sigal, but it doesn't do captions with the standard themes. Then I came across Nikola galleries and Pelican-gallery plugin, but I don't know whether they show the EXIF captions - and how well they perform.

So advice on these or other tools to achieve what I want is much appreciated!

10
  • You could always use ImageMagik to automatically add captions to copies of the pictures. Aug 31, 2014 at 11:04
  • @SteveBarnes How I understand the question, he already have the captions in the EXIF tags, and need show them in the html page...
    – clt60
    Sep 1, 2014 at 19:20
  • @jm666 ImageMagik can also extract the EXIF tags. Sep 1, 2014 at 19:25
  • From the docs of Sigal: Sigal comes with two themes, based on the colorbox and galleria Javascript libraries. The galleria demo is responsive - try resize your browser.
    – clt60
    Sep 1, 2014 at 19:26
  • @jm666 Main requirement is to show the image captions from EXIF tags, the galleria demo doesn't display captions.
    – halloleo
    Sep 3, 2014 at 4:32

2 Answers 2

2

From the Python wiki here is a list of static site generators, since they are all Python based they should be scriptable and you can extract the Exif data using ImageMagick or the Python ExifRead library:

  • Blogofile - (Mako, Jinja2)-based generator with supports for (reStructuredText, Markdown, Textile), Git, Disqus, RSS feeds, plugins, and S3, very nice license with human touch.
  • Clay - Jinja2 for easy site prototyping, MIT.
  • Complexity - A refreshingly simple static site generator, for those who like to work in HTML.
  • Crotal - (Jinja2)-A static site generator written in Python, using Jinja2 template engine, BSD
  • Cyrax - poetic Jinja2 engine, used for osgameclones.
  • Hyde - Jinja2-based static web site generator, MIT, source
  • Mynt - Static website generator based on Markdown and Jinja2. BSD-3.
  • Nikola - Generator supporting reST, Markdown, IPyNB et al.; using Mako and Jinja2 for templates; supports multilingual sites, galleries, RSS feeds, DISQUS et al. for comments. Incremental builds. MIT license.
  • Obraz - Static blog-aware site generator mostly compatible with Jekyll, MIT
  • Poole - static website generator, Markdown. GPL.
  • Pelican - Uses Markdown or ReST for content and Jinja 2 for themes. Supports DVCS, Disqus. AGPL.
  • PubTal - Templating#SimpleTAL-based static site generator, BSD-3
  • rest2web - Generates Websites from ReST contents, BSD
  • Sphinx - Python's official documentation system that turns ReST into HTML, LaTeX, man pages, plaintext, and has many features for making site trees, inter-linking, and other documentation necessities (Jinja2 as default template engine). BSD.
  • staticninja - MIT, Jinja2, auto-compile. That simple.
  • tahchee - Cheetah-based static web site generator
  • Tinkerer - blogging engine/static website generator powered by Sphinx with polite-correct license list.
  • Urubu - A micro CMS for static websites, with a focus on good navigation practices. AGPL.
  • wok - MIT licensed, Jinja2, Markdown, reST, etc.
6
  • 3
    I am not interested in a general list of static site generators - rather a tool which creates picture galleries with image captions. I guess I am looking for something where the templates have the capability to show the captions...Will clarify this in the question!
    – halloleo
    Sep 3, 2014 at 4:39
  • @waldalla - any of those listed can with do that with minimal scripting - the unusual bit of your request is for the captions to be generated/extracted from the EXIF rather than being input into a text file. Sep 3, 2014 at 6:04
  • Advice on details of the scripting would be much appreciated...
    – halloleo
    Sep 4, 2014 at 7:28
  • 1
    I don't see the point of such an answer. Given that there exist picture gallery generators that can be adjusted to show caption from EXIF tags, what is the point of mentioning many generic site generators that don't handle photo-specific stuff and thus would need much higher work to even come close to photo-specific generators? Mar 13, 2020 at 21:41
  • @StéphaneGourichon The point is the flexibility gained by using such generators and the fact that they can be used to generate a site which contains such a gallery but in not necessarily restricted to such a gallery. Yes more work than dedicated gallery generators but also more benefit. Mar 14, 2020 at 6:07
0

This is not Python based. It is windows based but I used it in my business for years to generate various sized photos. The $15 program is called Smaller Animals ThumnbNailer. It is command line, has a HTML templating system. Not sure on the exif part of your question though...

1
  • from destination link: "Smaller Animals Software is out of business." Aug 4, 2016 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.