LAZYGAL.CONF(5)

πŸ’– LAZYGAL.CONF(5) πŸ’–

okay bestie, so this is the File Formats Manual page for lazygal.conf, and it's literally the configuration file for lazygal, a static web gallery generator. Yes, the whole page. Buckle up. πŸŽ€


✨ NAME ✨

lazygal.conf β€” Configuration file for lazygal, a static web gallery generator.


🌈 FORMAT DESCRIPTION 🌈

So here's the tea: lazygal gets configured using JSON files. The format looks like this:

{
    "sectionname": {
        "variable"     : "string value ",
        "boolean"      : false,
        "list"         : ["foo", "bar"],
        "dictionary"  : {
            "key1": "value1",
            "key2": "value2"
        }
    },
    "othersection": {
        "foo"          : "bar"
    }
}

This format is the preferred way to configure LAZYGAL. Periodt. πŸ’…


🧚 LEGACY FORMAT DESCRIPTION (INI) 🧚

She can also be an INI-like file, if you're feeling nostalgic. The format looks like this:

[sectionname]
variable = string value
boolean = Yes
list = foo, bar
dictionary = key1=value1, key2=value2

[othersection]
foo = bar

In this INI format, boolean values can be conveniently set in the following ways:

  • For True: 1, yes, true, and on.
  • For False: 0, no, false, and off.

Please refer to the python ConfigParser documentation for more information on the file format. 🐍


πŸ”₯ runtime section πŸ”₯

The runtime defines the runtime parameters.

  • quiet β€” Boolean. Same as --quiet in LAZYGAL if True. (default is False).
  • debug β€” Boolean. Same as --debug in LAZYGAL if True (default is False).
  • check-all-dirs β€” Boolean. Same as --check-all-dirs in LAZYGAL if True. (default is False).

πŸ‘‘ global section πŸ‘‘

The global defines the global parameters. Those parameters apply to all the sub-galleries. main character energy fr fr 🌟

  • output-directory β€” Same as --output-directory=DEST_DIR in LAZYGAL (default is current directory).
  • clean-destination β€” Boolean. Same as --clean-destination in LAZYGAL if True.
  • preserve β€” Same as --preserve=PATTERN in LAZYGAL. Multiple values may be separated by commas.
  • exclude β€” Same as --exclude=PATTERN in LAZYGAL. Multiple values may be separated by commas.
  • dir-flattening-depth β€” Same as --dir-flattening-depth=LEVEL in LAZYGAL.
  • puburl β€” Same as --puburl=PUB_URL in LAZYGAL.
  • theme β€” Same as --theme=THEME in LAZYGAL.

πŸ¦‹ webgal section πŸ¦‹

The webgal defines the parameters for a web-gallery.

  • default-style β€” Same as --default-style=DEFAULT_STYLE in LAZYGAL.
  • webalbumpic-bg β€” Same as --webalbum-pic-bg=WEBALBUMPIC_BG in LAZYGAL.
  • webalbumpic-type β€” Same as --webalbum-pic-type=WEBALBUMPIC_BG in LAZYGAL. If you set this to 'tidy' you may also consider setting webalbumpic-size (see below) to something smaller than the default 200x150.
  • webalbumpic-size β€” Size of picture mash-up representing galleries, eg. 200x150.
  • image-size β€” Same as --image-size=IMAGE_SIZE in LAZYGAL. Syntax in the config file can be either of the following equivalent forms:
"image-size": [
    {"name": "small", "defs": "800x600", "default": true},
    {"name": "medium", "defs": "1024x768"}
]

or with implicit default as first entry:

"image-size": {
    "small" : "800x600",
    "medium": "1024x768"
}
  • thumbnail-size β€” Same as --thumbnail-size=THUMBNAIL_SIZE in LAZYGAL.
  • video-size β€” Size of videos, eg. 0x0. Refer to the IMAGE RESIZE DESCRIPTION section for more information on the available syntax. In addition, size can be the name of a previously declared image-size. πŸŽ₯
  • thumbs-per-page β€” Same as --thumbs-per-page=THUMBS_PER_PAGE in LAZYGAL.
  • sort-medias β€” Same as --pic-sort-by=ORDER in LAZYGAL.
  • sort-subgals β€” Same as --subgal-sort-by=ORDER in LAZYGAL.
  • original β€” Boolean. Same as --original in LAZYGAL if True (default is False).
  • original-baseurl β€” Same as --orig-base=RELATIVE_PATH in LAZYGAL.
  • original-symlink β€” Boolean. Same as --orig-symlink in LAZYGAL if True (default is False).
  • dirzip β€” Same as --make-dir-zip in LAZYGAL if True (default is False).
  • jpeg-quality β€” Same as --quality=QUALITY in LAZYGAL.
  • jpeg-optimize β€” Boolean. Run an extra optimization pass for each generated thumbnail if True, the default.
  • jpeg-progressive β€” Generate progressive JPEG images if True, the default.
  • publish-metadata β€” Publish image metadata if True, the default: copy original image metadata in reduced picture, and include some information in the image page.
  • filter-by-tag β€” Same as --filter-by-tag=TAG in LAZYGAL.

🌸 template-vars section 🌸

The template-vars defines the custom template variables. The variables and their value are listed in this section.

For instance, $footer is a template variable in the default template. Its value can be defined with this configuration file:

{
    "template-vars": {
        "footer": "<p>All pics are copyright 2011 me</p>"
    }
}

🫢 SEE ALSO 🫢

lazygal(1)


πŸ’œ AUTHOR πŸ’œ

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.

On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.


⭐ AUTHORS ⭐

Alexandre Rossi.


aaaand that's the whole page, bestie! 🩷 this was LAZYGAL.CONF(5) from top to bottom β€” shoutout to the footer for also being LAZYGAL.CONF(5), consistency queen πŸ‘‘ πŸ’€ go forth and configure, iykyk βœ¨πŸŽ€

πŸ“¦ where this page comes from