Code Monkey home page Code Monkey logo

gallery-gen's Introduction

rla-gallery-gen

Photo gallery generator. Uses JSON metainfo files in the original images tree.

Features:

  • Custom templates
  • Incremental updates
  • Fixed-sized no-distortion thumbnails
  • Output directory separated from the source images directory
  • Unbounded album nesting

Usage

Options:

    -h, --help               output usage information
    -V, --version            output the version number
    --base <directory>       The base directory.
    --target <directory>     The target directory.
    --templates <directory>  The templates directory.
    --force                  Force the recreation of thumbnails/target images.
    --thumbnail <size>       Thumbnail size (example: 300x200).
    --normal <size>          Normal max width (example: 1200).

Metainfo

Metainfo is stored in info.json files (one per directory). Supported metainfo:

{
    "title": String,
    "description": String, // can contain HTML
    "cover": String, // relative path to cover image,
    "order": String, // currently only "year" is supported,
    "year": Number   // album year, used for sorting in the parent
}

Fields description, cover, order and year can be missing.

Templates

See the example-templates directory.

Dependencies

ImageMagick > 6.3.8 must be installed.

Debugging

Run with DEBUG=* rla-gallery-gen.

License

The MIT License. See the LICENSE file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.