-->
Home » , , , » Lazygal is another static web gallery generator written in Python
Sunday
8 November 2009

Lazygal is another static web gallery generator written in Python

lazygal Lazygal is another static web gallery generator written in Python. It is command line based, uses reusable engine and is lazy - it regenerates only parts that have to be regenerated.

There is support for many interesting features like subgalleries, EXIF information, theming and custom folder meta data. Included themes are pure XHTML + CSS.

It can be summed up by the following features :

  • Commande line based (thus scriptable).
  • Reusable engine (to make a GUI for instance).
  • Lazy : do not build what's already there.
  • Recursive : generates subgalleries.
  • Does not change your original pictures directories (the source argument).
  • Tells you what should not be in your generated directories (and delete it if you want to).
  • Can generate multiple sizes to browse pictures according to your screen.
  • Sort pictures in the same directory by EXIF date if available, else file modification time.
  • Theming.
  • XHTML and CSS compliance for provided themes.
  • Support for per folder meta data.
  • RSS feed generation for your album updates.
  • Optional generation of ZIP archives of original pictures.
  • Output internationalization.
  • Optional breaking of big galleries (directories) on multiple pages.
  • Multiple sorting options for pictures and galleries.

A huge gallery shows Lazygal in action : Album. Another example using album images: Photos from Japan.



Usage

Usage is straightforward :

usage: lazygal [options] albumdir

Options:
-h, --help Show this help message and exit.
--quiet Don't output anything except for errors.
--debug Output everything that lazygal is doing.
-o DEST_DIR, --output-directory=DEST_DIR
Directory where web pages, slides and thumbs will be
written (default is current directory).
-t THEME, --theme=THEME
Theme name (looked up in theme directory) or theme
full path.
--default-style=DEFAULT_STYLE
Default style to apply to the theme.
--template-vars=TPL_VARS
Common variables to load all templates with.
--clean-destination Clean destination directory of files that should not
be there.
-v, --version Display program version.
--check-all-dirs Exhaustively go through all directories regardless of
source modification time.
-s IMAGE_SIZE, --image-size=IMAGE_SIZE
Size of images, define as <name>=<x>x<y>,..., eg.
small=800x600,medium=1024x768. The special dimensions
0x0 use original size.
-T THUMBNAIL_SIZE, --thumbnail-size=THUMBNAIL_SIZE
Size of thumbnails, define as <x>x<y>, eg. 150x113.
-q QUALITY, --quality=QUALITY
Quality of generated JPEG images (default is 85).
-O, --original Include original photos in output.
--orig-base=ORIG_BASE
Do not copy original photos in output directory,
instead link them using submitted relative path as
base.
--puburl=PUB_URL Publication URL (only usefull for feed generation).
-m, --generate-metadata
Generate metadata description files where they don&#039;t
exist.
-n THUMBS_PER_PAGE, --thumbs-per-page=THUMBS_PER_PAGE
Maximum number of thumbs per index page. This enables
index pagination (0 is unlimited).
-z, --make-dir-zip Make a zip archive of original pictures for each
directory.
--webalbum-pic-bg=WEBALBUMPIC_BG
Webalbum picture background color. Default is
transparent, and implies the PNG format. Any other
value, e.g. red, white, blue, uses JPEG.
--optimize Run an extra optimization pass an each image.
--progressive Generate Progressive JPEG images.
--pic-sort-by=ORDER Sort order for images in a folder: filename, mtime, or
exif. Add &#039;:reverse&#039; to reverse the chosen order.
--subgal-sort-by=ORDER
Sort order for sub galleries in a folder: filename or
mtime. Add &#039;:reverse&#039; to reverse the chosen order.


If you want to force lazygal into checking a directory's contents, simply touch the source directory to modify its modification time :


$ touch album_source/gallery_to_check


Download & Changelog



If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:

Related Post






Linux Links


0 commenti:

Post a Comment

Random Posts

  • The Mobile Industry in numbers [Infographic].
    01.06.2013 - 0 Comments
    If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:
  • Apache incubator Project: Projects Graduated from Incubation.
    11.02.2013 - 0 Comments
    Apache Incubator is the gateway for open-source projects intended to become fully fledged Apache Software Foundation projects. The Incubator project was created in October 2002 to provide an entry path to the Apache Software Foundation for projects…
  • PC-BSD is a Unix-like, desktop-oriented operating system based on FreeBSD.
    07.01.2010 - 0 Comments
    PC-BSD is a free operating system with ease of use in mind. Like any modern system, you can listen to your favorite music, watch your movies, work with office documents and install your favorite applications with a setup wizard at a click.PC-BSD is…
  • Guides and tutorials for Zorin OS: How to back up files from your computer and tips to keep your data safe.
    17.11.2022 - 2 Comments
    Often essential software to protect this data, a backup program.As I repeat every time I talk about the topic of security in general and especially about installing Linux, making a backup copy of your hard drive and this data before installing Linux…
  • MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language.
    20.05.2011 - 0 Comments
      MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language. Menuet64 is released under License and Menuet32 under GPL. Menuet supports 32/64 bit x86 assembly programming…
  • Teaching Math with Kig, the KDE Interactive Geometry Program.
    04.07.2014 - 0 Comments
    Kig is an application for interactive geometric construction, allowing students to draw and explore mathematical figures and concepts using the computer. It is intended to serve two purposes:     Allow students to interactively…
  • Ark, archive utility for KDE 4
    26.06.2009 - 0 Comments
    Ark is a program for managing various archive formats within the KDE environment.The latest stable release is version 2.12, included in KDE 4.2. Ark is a free and open source software, available for Linux and similar operating systems under the GNU…
  • Comparison of X Window System desktop environments.
    27.10.2010 - 0 Comments
    This article is written like a personal reflection or essay and may require cleanup. Please help improve it by rewriting it in an encyclopedic style. (December 2007)A desktop environment is a collection of software designed to give functionality and…
  • MySQL: Optimize and Repair Tables
    12.05.2009 - 0 Comments
    You can, in most cases, also use the command OPTIMIZE TABLES to optimise and repairtables, but this is not as fast or reliable (in case of real fatal errors) as myisamchk. On theother hand, OPTIMIZE TABLE is easier to use and you don’t have to worry…
  • The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX
    23.01.2010 - 0 Comments
    The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides…

Recent Posts

Recent Posts Widget

Popular Posts

Labels

Archive

page counter follow us in feedly
 
Copyright © 2014 Linuxlandit & The Conqueror Penguin
-->