Getting started¶
How to Use¶
- Initialize
To get started, just run
sigal initwhich will copy an example configuration file in the current directory.All configuration values have a default; values that are commented out serve to show the default. Default values are specified when modified in this example config file.
- Build
After adapting the configuration to your needs, put your images in a sub-directory and run
sigal build <your images directory>.The next time you run
sigal build, only the new images will be processed. You can use the-fflag to force the reprocessing of all the images or the-aflag to force only the specified matching albums. Images (resp. videos) that are smaller than the size specified by theimg_size(resp.video_size) setting will not be resized.You may also want to know how to specify information about albums and images.
- Serve
To visualize your gallery, you can use
sigal servewhich runs a basic web server. This server should only be used for local browsing, not in production.Another option is to use the
index_in_url = Truesetting, which will addindex.htmlto the urls to allow browsing without a server.
Help on the sigal build command¶
$ sigal build [-h] [-d] [-v] [-f] [-a PATTERN] [-c CONFIG] [-t THEME] [-n NCPU]
[source] [destination]
Required arguments:
sourceInput directory
destinationOutput directory (default:
_build/)
Optional arguments:
-h, --helpShow this help message and exit
-f, --forceForce the reprocessing of existing images and thumbnails
-a --force-albumForce the reprocessing of existing images matching the given album wildcard pattern. Patterns containing wildcards will be matched against the full album path, while patterns without wildcards will be match against the album name only:
-a 'My Pictures/*Pics'
My Pictures/Old Pics => Force
My Pictures/New Pics => Force
My Pictures/Pictures => No Force
-a 'Landscapes'
My Pictures/Landscapes => Force
My Other Pictures/Landscapes => Force
-v, --verboseShow all messages
-d, --debugShow all message, including debug messages
-c CONFIG, --config CONFIGConfiguration file (default:
sigal.conf.pyin the current working directory)-t THEME, --theme THEMESpecify a theme directory, or a theme name for the themes included with Sigal
-n NCPU, --ncpu NCPUNumber of cpu to use (default: all)
Help on the sigal serve command¶
$ sigal serve [-c CONFIG] [-p PORT] [destination]
Optional arguments:
-c CONFIG, --config CONFIGConfiguration file (default:
sigal.conf.pyin the current working directory)-p PORT, --port PORTPort number to start the server on (default: 8000)
destinationDestination directory where the output of build is located (default: _build)