项目作者: rla

项目描述 :
Static image gallery generator.
高级语言: JavaScript
项目地址: git://github.com/rla/gallery-gen.git
创建时间: 2015-06-18T05:21:48Z
项目社区:https://github.com/rla/gallery-gen

开源协议:MIT License

下载


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

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

Metainfo

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

  1. {
  2. "title": String,
  3. "description": String, // can contain HTML
  4. "cover": String, // relative path to cover image,
  5. "order": String, // currently only "year" is supported,
  6. "year": Number // album year, used for sorting in the parent
  7. }

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.