.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "LAZYGAL.CONF" "5" "" "" "" .hy .SH NAME .PP lazygal.conf - Configuration file for lazygal, a static web gallery generator. .SH FORMAT DESCRIPTION .PP lazygal is configured using JSON files. The format looks like this: .IP .nf \f[C] { \[dq]sectionname\[dq]: { \[dq]variable\[dq] : \[dq]string value \[dq], \[dq]boolean\[dq] : false, \[dq]list\[dq] : [\[dq]foo\[dq], \[dq]bar\[dq]], \[dq]dictionary\[dq] : { \[dq]key1\[dq]: \[dq]value1\[dq], \[dq]key2\[dq]: \[dq]value2\[dq] } }, \[dq]othersection\[dq]: { \[dq]foo\[dq] : \[dq]bar\[dq] } } \f[R] .fi .PP This format is the preferred way to configure LAZYGAL. .SH LEGACY FORMAT DESCRIPTION (INI) .PP The configuration file can also be an INI like file. The format looks like this: .IP .nf \f[C] [sectionname] variable = string value boolean = Yes list = foo, bar dictionary = key1=value1, key2=value2 [othersection] foo = bar \f[R] .fi .PP In this INI format, boolean values can be conveniently set in the following ways: .IP \[bu] 2 For \f[C]True\f[R]: \f[C]1\f[R], \f[C]yes\f[R], \f[C]true\f[R], and \f[C]on\f[R]. .IP \[bu] 2 For \f[C]False\f[R]: \f[C]0\f[R], \f[C]no\f[R], \f[C]false\f[R], and \f[C]off\f[R]. .PP Please refer to the python \f[C]ConfigParser\f[R] documentation (http://docs.python.org/library/configparser.html) for more information on the file format. .SH runtime section .PP The \f[C]runtime\f[R] defines the runtime parameters. .TP quiet Boolean. Same as \f[C]--quiet\f[R] in LAZYGAL if \f[C]True\f[R]. (default is \f[C]False\f[R]). .TP debug Boolean. Same as \f[C]--debug\f[R] in LAZYGAL if \f[C]True\f[R] (default is \f[C]False\f[R]). .TP check-all-dirs Boolean. Same as \f[C]--check-all-dirs\f[R] in LAZYGAL if \f[C]True\f[R]. (default is \f[C]False\f[R]). .SH global section .PP The \f[C]global\f[R] defines the global parameters. Those parameters apply to all the sub-galleries. .TP output-directory Same as \f[C]--output-directory=DEST_DIR\f[R] in LAZYGAL (default is current directory). .TP clean-destination Boolean. Same as \f[C]--clean-destination\f[R] in LAZYGAL if \f[C]True\f[R]. .TP preserve Same as \f[C]--preserve=PATTERN\f[R] in LAZYGAL. Multiple values may be separated by commas. .TP exclude Same as \f[C]--exclude=PATTERN\f[R] in LAZYGAL. Multiple values may be separated by commas. .TP dir-flattening-depth Same as \f[C]--dir-flattening-depth=LEVEL\f[R] in LAZYGAL. .TP puburl Same as \f[C]--puburl=PUB_URL\f[R] in LAZYGAL. .TP theme Same as \f[C]--theme=THEME\f[R] in LAZYGAL. .SH webgal section .PP The \f[C]webgal\f[R] defines the parameters for a web-gallery. .TP default-style Same as \f[C]--default-style=DEFAULT_STYLE\f[R] in LAZYGAL. .TP webalbumpic-bg Same as \f[C]--webalbum-pic-bg=WEBALBUMPIC_BG\f[R] in LAZYGAL. .TP webalbumpic-type Same as \f[C]--webalbum-pic-type=WEBALBUMPIC_BG\f[R] in LAZYGAL. If you set this to \[aq]tidy\[aq] you may also consider setting \f[C]webalbumpic-size\f[R] (see below) to something smaller than the default 200x150. .TP webalbumpic-size Size of picture mash-up representing galleries, eg. 200x150. .TP image-size Same as \f[C]--image-size=IMAGE_SIZE\f[R] in LAZYGAL. Syntax in the config file can be either of the following equivalent forms: .RS .IP .nf \f[C] \[dq]image-size\[dq]: [ {\[dq]name\[dq]: \[dq]small\[dq], \[dq]defs\[dq]: \[dq]800x600\[dq], \[dq]default\[dq]: true}, {\[dq]name\[dq]: \[dq]medium\[dq], \[dq]defs\[dq]: \[dq]1024x768\[dq]} ] \f[R] .fi .PP or with implicit default as first entry: .IP .nf \f[C] \[dq]image-size\[dq]: { \[dq]small\[dq] : \[dq]800x600\[dq], \[dq]medium\[dq]: \[dq]1024x768\[dq] } \f[R] .fi .RE .TP thumbnail-size Same as \f[C]--thumbnail-size=THUMBNAIL_SIZE\f[R] in LAZYGAL. .TP video-size Size of videos, eg. 0x0. Refer to the IMAGE RESIZE DESCRIPTION section for more information on the available syntax. .RS .PP In addition, size can be the name of a previously declared image-size. .RE .TP thumbs-per-page Same as \f[C]--thumbs-per-page=THUMBS_PER_PAGE\f[R] in LAZYGAL. .TP sort-medias Same as \f[C]--pic-sort-by=ORDER\f[R] in LAZYGAL. .TP sort-subgals Same as \f[C]--subgal-sort-by=ORDER\f[R] in LAZYGAL. .TP original Boolean. Same as \f[C]--original\f[R] in LAZYGAL if \f[C]True\f[R] (default is \f[C]False\f[R]). .TP original-baseurl Same as \f[C]--orig-base=RELATIVE_PATH\f[R] in LAZYGAL. .TP original-symlink Boolean. Same as \f[C]--orig-symlink\f[R] in LAZYGAL if \f[C]True\f[R] (default is \f[C]False\f[R]). .TP dirzip Same as \f[C]--make-dir-zip\f[R] in LAZYGAL if \f[C]True\f[R] (default is \f[C]False\f[R]). .TP jpeg-quality Same as \f[C]--quality=QUALITY\f[R] in LAZYGAL. .TP jpeg-optimize Boolean. Run an extra optimization pass for each generated thumbnail if \f[C]True\f[R], the default. .TP jpeg-progressive Generate progressive JPEG images if \f[C]True\f[R], the default. .TP publish-metadata Publish image metadata if \f[C]True\f[R], the default: copy original image metadata in reduced picture, and include some information in the image page. .TP filter-by-tag Same as \f[C]--filter-by-tag=TAG\f[R] in LAZYGAL. .SH template-vars section .PP The \f[C]template-vars\f[R] defines the custom template variables. The variables and their value are listed in this section. .PP For instance, \f[C]$footer\f[R] is a template variable in the \f[C]default\f[R] template. Its value can be defined with this configuration file: .IP .nf \f[C] { \[dq]template-vars\[dq]: { \[dq]footer\[dq]: \[dq]

All pics are copyright 2011 me

\[dq] } } \f[R] .fi .SH SEE ALSO .PP \f[B]lazygal\f[R](1) .SH AUTHOR .PP This manual page was written for the DEBIAN system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. .PP On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. .SH AUTHORS Alexandre Rossi.