48 lines
1.0 KiB
Plaintext
48 lines
1.0 KiB
Plaintext
sigal - simple gallery generator
|
|
================================
|
|
|
|
This python script prepares a gallery of images for [Piwigo]() gallery script.
|
|
It resizes images, creates thumbnails with some options (rename images,
|
|
squared thumbs, ...).
|
|
|
|
[Piwigo]: http://www.piwigo.org/
|
|
|
|
Dependencies
|
|
------------
|
|
|
|
- Python Imaging Library (PIL)
|
|
- exiv2 (for exif datas)
|
|
- ConfigObj
|
|
|
|
on Ubuntu :
|
|
> sudo apt-get install python-imaging python-pyexiv2 python-configobj
|
|
|
|
on Fedora :
|
|
> yum install python-imaging pyexiv2 python-configobj
|
|
|
|
The script should also work on other system (Windows, Mac) but this has not be
|
|
tested yet.
|
|
|
|
Usage
|
|
-----
|
|
|
|
go in the directory of images to process and launch the script:
|
|
> /path/to/sigal/sigal.py input_dir output_dir
|
|
|
|
Settings
|
|
--------
|
|
|
|
Adapt setting to your needs in the configuration file (`sigal.conf`):
|
|
- Size of images and thumbnails
|
|
- JPG quality
|
|
- Thumbnails prefix
|
|
|
|
Options
|
|
-------
|
|
|
|
Some features are optionnal (1=enable / 0=disable):
|
|
- Add a copyright on the images
|
|
- Keep big images
|
|
- Keep exif datas
|
|
- Make squared thumbnails
|