🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

galgen

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

galgen

Simple gallery generator.

0.2.0
Maintainers
1

GalGen

Simple gallery generator.

Features

  • Simple
  • Reliable
  • Customizable

Demo

Sample gallery can be found here.

Installing

pip install galgen

Getting Started

Let's say we have the following file structure:

holidays/
  day1/
    pic1.jpg
    pic2.jpg
    pic3.jpg
    thumnails/
      pic1.jpg
      pic2.jpg
      pic3.jpg
  day2/
    pic1.jpg
    pic2.jpg
    pic3.jpg
    thumnails/
      pic1.jpg
      pic2.jpg
      pic3.jpg

To generate and open your gallery invoke the following:

$ galgen init path/to/holidays
$ galgen build --open path/to/holidays
  • One or more directories with the pictures are required.
  • Define content of your gallery in gengal-config.yml
  • Customize layout in index.html.j2

Rebuild your gallery whenever pictures are added/removed or other changes applied.

$ galgen build --force path/to/holidays

Thumnails

  • Thumnails are optional. Skip them (for simplicity) or generate manually (for performance).
  • Size of the thumnails is of your choice.
  • Filenames of the thumnails must correspond to the filenames of the full-scale pictures.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts