Download Dynalbum 1.5

Changes since 1.3:

Sample photo album
# Dynalbum 1.5 -- dynamic photo album index/thumbnail generation
#                 for Apache/mod_python
#
# Copyright (C) 2003-2006 Stephen D. Holland 
# Copyright (C) 2004 Miha Setina (PIL support)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
# ABOUT DYNALBUM
# 
# Dynalbum is an automatic web photo album generator. The album
# includes an index page with thumbnails, navigation tools on each
# album page, and four sizes of each picture. The entire album is
# dynamically generated from your directory of JPEG's, TIFF's, PNG's,
# and GIF's when it is accessed. Unlike other photo album generators,
# it doesn't clutter your files with thumbnails and static html. 
#
# Dynalbum generates each page and each scaled image (including
# thumbnails) dynamically every time it is accessed. This means that
# there's no need to keep static copies of anything but the original
# pictures. Unfortunately, it also has a performance penalty especially
# if your server is slow or overloaded, since the thumbnails and
# scaled images need to be regenerated every time. 
#
# Dynalbum is written in Python. It requires the Apache web server,
# with mod_python installed. It uses either the Python Imaging Library
# (PIL) if it is installed, or the ImageMagick convert utiltity
# otherwise to convert and resize images.
#
# mod_python can be downloaded from http://www.modpython.org
# PIL can be downloaded from http://www.pythonware.com/products/pil/
# ImageMagick can be downloaded from http://www.imagemagick.org/


# INSTALLATION
#
# Copy the dynalbum.py program to the file "index.py" in your
# image directory. You need to enable mod_python for
# this directory. This can be accomplished either in your
# httpd.conf  (/etc/httpd/conf/httpd.conf or
# /etc/httpd/conf.d/python.conf) or in a ".htaccess" file.
# The .htaccess file is placed in your image and adusts
# web server parameters for that directory. In order to use
# a .htaccess file you may need to enable support using the
# "AllowOverride" directive in the global apache configuration.
#
# httpd.conf example:
# 
# DirectoryIndex index.py
# AddHandler python-program .py
# PythonHandler mod_python.publisher
# PythonInterpPerDirectory On
# 
#
# .htaccess file example: 
# DirectoryIndex index.py
# AddHandler python-program .py
# PythonHandler mod_python.publisher
# PythonInterpPerDirectory On
#
# and change the relevant instance of "AllowOverride None"
# in httpd.conf to "AllowOverride All" to enable .htaccess
# support in Apache.
#
#
# USAGE
#
# Point your web browser at the image directory and you will
# see your new dynamically generated photo album.
#
# CONFIGURATION/CUSTOMIZATION
#
# Dynalbum looks for a file called ".dynalbum_params" in
# the image directory. Read the comments under "PARAMETERS"
# in the source file for information on the parameters. 
#
# WEB PAGE
#
# http://ahab.cnde.iastate.edu/~sdh4/dynalbum
#
# AUTHOR CONTACT
#
# Steve Holland  sdh4 at the domain iastate.edu or cornell.edu
# http://ahab.cnde.iastate.edu/~sdh4
#
# Miha Setina    mihasetina at softhome dit net (PIL support)
#


# PARAMETERS
#
# You can define these parameters in a file called
# '.dynalbum_params' in your image directory. Values
# specified there will override the defaults here
# Just paste the lines from here into your
# .dynalbum_params file. Comments are permitted.
#
# pixel sizes of the various image sizes
_thumbnailsizex=120
_thumbnailsizey=120
_smallsizex=600
_smallsizey=420
_mediumsizex=900
_mediumsizey=700
_largesizex=1200
_largesizey=900

# maximum number of thumbnails per image page
_entriesperindexpage=20
# The 'orignal' image size corresponds to the original JPEGs,
# and cannot be adjusted
    
    
# The title of this photo collection.
_title=None
#_title="My pictures"
    
# The _author field goes in a right-justified second
# level heading on the index page
_author=None
#_author="I took these photos"

# _bodyparams allows you to set [arameters to the HTML
# BODY tag. This can be used to set a background image,
# as well as adjust background and foreground colors
    
# Gray with black text (the default)
_bodyparams="""bgcolor="#999999" text="#000000" """
    
# Black with white text
#_bodyparams="""BGCOLOR="#000000" text="#ffffff" link="#44bbff" vlink="#bbbbff" alink="#ff0000" """

# _offerarchive allows you to offer a .tar.gz or zip archive for download
_offerarchive=1