58 lines
1.4 KiB
Plaintext
58 lines
1.4 KiB
Plaintext
sigal - yet another simple static gallery generator
|
|
===================================================
|
|
|
|
sigal is yet another python script to prepare a static gallery of images:
|
|
|
|
* resize images, create thumbnails with some options (squared thumbs, ...).
|
|
* generate html pages using jinja2 templates.
|
|
|
|
Dependencies
|
|
------------
|
|
|
|
- Python Imaging Library (PIL)
|
|
- Jinja2
|
|
- exiv2 (optionnal, used to copy exif metadatas)
|
|
|
|
Usage
|
|
-----
|
|
|
|
$ sigal [options] input_dir output_dir
|
|
|
|
Options:
|
|
--version show program's version number and exit
|
|
-h, --help show this help message and exit
|
|
-c COPYRIGHT, --copyright=COPYRIGHT
|
|
copyright message added to the images
|
|
-f FORCE, --force=FORCE
|
|
force the reprocessing of existing images and
|
|
thumbnails
|
|
|
|
Settings
|
|
--------
|
|
|
|
Options can be set globally in `~/.config/sigal/sigal.conf` and in the source
|
|
directory `input_dir/sigal.conf`.
|
|
|
|
* size of resized image:
|
|
img_size = 640x480
|
|
* prefix for thumbnails name:
|
|
thumb_prefix = TN-
|
|
* thumbnail size and directory:
|
|
thumb_size = 150x112
|
|
thumb_dir = thumbnail
|
|
* keep big image:
|
|
big_img = 1
|
|
bigimg_dir = original
|
|
* generate squared thumbnails:
|
|
square_thumb = 1
|
|
* jpeg quality:
|
|
jpg_quality = 90
|
|
* keep exif metadatas in output image:
|
|
exif = 1
|
|
* add a copyright text on the image:
|
|
copyright = the copyright msg
|
|
|
|
Album information
|
|
-----------------
|
|
|