Simon fa07bdca40 reorganize the parsing of the directory structure
Avoid parsing too often the directory structure and files by doing it once at
the beginning and storing the info in a dict
2012-10-31 23:23:16 +01:00
2012-10-30 00:27:12 +01:00
2012-07-02 00:09:36 +02:00
2012-08-26 00:29:57 +02:00
2012-05-13 23:49:55 +02:00
2012-09-15 00:41:54 +02:00
2012-09-15 00:41:54 +02:00

=====================================================
 sigal - yet another simple static gallery generator
=====================================================

sigal is yet another python script to build a static gallery of images:

* process directories recursively,
* resize images and create thumbnails,
* generate html pages using jinja2 templates and with relative links for a
  portable output.

Dependencies
------------

- Python Imaging Library (PIL / Pillow)
- Jinja2
- Python Markdown
- pyexiv2 (optionnal, used to copy exif metadatas)

Usage
-----

::

    $ sigal [-h] [--version] [-f] input_dir output_dir

Required arguments:

================ =====================
 ``input_dir``	  input directory
 ``output_dir``   output directory
================ =====================

Optional arguments:

============================= ==============================================
 ``-h|--help``                show this help message and exit
 ``--version``                show program's version number and exit
 ``-f|--force``               force the reprocessing of existing images and
                              thumbnails
============================= ==============================================

Settings
--------

The configuration for the gallery must be set in `<input_dir>/sigal.conf`.

::

    # theme
    theme = default
    # size of resized image
    img_size = 640x480
    # prefix for thumbnails name
    thumb_prefix = TN-
    # thumbnail size
    thumb_size = 200x150
    # crop the image to fill the box
    thumb_fit = 1
    # keep big image
    big_img = 1
    bigimg_dir = original
    # 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
-----------------

Information on an album can be given in a file using the markdown syntax,
named `index.mkd` ::

    Title: Another example gallery
    Representative: test2.jpg

    And a *cool* description.

If this file does not exist the directory's name is used for the title, and
the first image of the directory is used as representative.

Credits
-------

sigal use or is inspired from some code from other projects:

* galleria: http://galleria.aino.se/
* WordPress Photography Theme: http://thethemefoundry.com/photography/
* lazygal: http://sousmonlit.dyndns.org/~niol/playa/oss/projects/lazygal/
Description
yet another simple static gallery generator
Readme 7.8 MiB
Languages
JavaScript 75.9%
Python 15.4%
CSS 6.7%
HTML 2%