gallerize
Create a static HTML/CSS image gallery from a bunch of images.
| Copyright: | 2007-2015 Jochen Kupperschmidt |
|---|---|
| License: | MIT, see LICENSE for details. |
| Version: | 0.3.2 |
| Date: | 09-Aug-2015 |
Features
- Integrates ImageMagick to resize images and create thumbnails.
- Generates clean, slim, semantically appropriate HTML5 and uses CSS 3 for styling. As a result, the output can easily be themed.
- Provides HTML access keys for keyboard navigation.
Requirements
- Python 2.7+ or 3.3+
- Jinja (tested with 2.7.1)
- ImageMagick (tested with 6.6.9-7)
Installation
It is recommended to create a virtual environment and run gallerize inside it.
To install ImageMagick and virtualenv on Debian/Ubuntu:
$ aptitude install imagemagick python-virtualenvThis should also give you a copy of pip.
Create a virtual environment called venv in the application path:
$ virtualenv venvActivate it (note the space after the first dot!):
$ . venv/bin/activateInstall the dependencies of this application:
$ pip install -r requirements.txtTests
Run with py.test
Install pytest as test runner:
$ pip install pytestRun tests:
$ py.test test_gallerize.pyRun with tox
To easily run tests in different Python interpreters, use tox:
$ pip install tox
$ toxAnd to test against a single, specific Python interpreter (version 3.4, in this case):
$ tox -e py34Usage
To create a gallery in the directory output from a all images in the directory images:
$ ./gallerize.py output/ images/*See the usage help for more information on specifying a gallery title, image captions, and image dimensions:
$ ./gallerize.py --help
Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
