DenkzeitWiki

Suchen:

Aktuelle Änderungen Printable View Änderungen Bearbeiten

LispMacros > Subversion > WikifyBlog > Interfaces > DuckTyping > DataIsCode > SegelKnoten > BooLanguage > PeterSeibel > AppLauncher > ReFactoring > EricRaymond > CodeQuality > JavaSprache > Java > JoelSpolsky > PyLeporelloClear Trail
Main /

Py Leporello

PyLeporello allows the easy creation of web-based photo albums (sometimes called leporello). It's a currently still quite simple script written in python that creates for the images of a directory.

The script generates an index.html-file displaying the thumbnails of the images in the leporello. Clicking on one of them opens another html-page that displays a larger (medium-sized) version of that image. It's possible to provide hi-res versions that can be accessed by clicking one more link. This option is enabled by default, but it can be disabled (to save bandwith), too.

The html-pages are generated using templates that are inlined in the script. Therefore only the script-file is needed.

I customize the layout of the index-file and the individual image-pages via CSS, though.

Example

There is an example-output generated by PyLeporello accessible here.

'Download'

PyLeporello can be accessed here.
PyLeporello_PostProcess can be downloaded there.

Usage

PyLeporello

Drop the script into the directory where the image-files (currenlty only jpg is supported) are stored. Invoke the script with
 python PyLeporello.py -t "title of album"
Additional options are available. Use
 python PyLeporello.py -h
to get help.

PyLeporello_PostProcess

Change the index.html that was generated by the main script PyLeporello so that it reflects the order in which the images should be displayed. You may add some describing text.
Run PyLeporello_PostProcess in the same directory where the html-files and the images are located. PyLeporello_PostProcess will extract the new order from index.html and reorder the slide-show. It will also take the describing text from index.html and place it in the html-files for the individual images.

Dependencies


Motivation


Versioning

1.0 @ 20050428

1.1 @ 20050627

1.2 @ 20050724


Todo


Similar projects

These are more elaborate...

Questions from users

In case you encountered problems, feel free to ask here. You can contact me more privately here.

Suggestions from users

You have a suggestion on how to improve the script? Please drop your idea here or contact me directly.

Edit - BackLinks - Tags - Page Hist - Print - Changes - Home - Orphans - Help

Zuletzt geändert am 25.07.2005 02:12 Uhr und seit 7. April 2005 1778 aufgerufen.