- Python Album Generator

Discussion in 'Python' started by =?iso-8859-1?q?Premshree=20Pillai?=, Apr 7, 2004.

  1. Hello people,

    I recently updated one of my Python scripts --
    This is a simple, command-line based, lightweight
    Python script to create an image album.

    Of course, there are plenty of image album creation
    tools -- a lot of them are very good. But, I wanted
    something very simple, something that doesn't scare
    the user with too many options. The final album should
    be clean -- something like what Zope's Image object

    Here are some of the features of the script:
    + Thumbnail creation (using a scaling factor that the
    user enters)
    + Image creation for the HTML of individual images
    (again using a scaling factor that the user enters)
    + The album Index file includes dimensions and file
    size of each image
    + The script generates a single CSS -- this makes
    changing the style very simple
    + The script runs on the command-line, and does not
    require any server-side processing

    Other requirements:
    + Python Imaging Library

    So, the idea of the script is -- Keep It As Simple As

    You can see a sample of an album created using this
    script at

    Oh, and the script itself is available at

    I hope it's useful.

    Premshree Pillai

    Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
    Go to:
    =?iso-8859-1?q?Premshree=20Pillai?=, Apr 7, 2004
    1. Advertisements

  2. Premshree ....

    Thanks for making your program available ....

    A glimpse of what the Arizona desert east of Phoenix
    toward Globe on highway US 60 looked like
    last Sunday April 04, 2004 ....

    Photography by .... John C. Schluterbusch

    The slide show was generated using
    a locally edited version of your Python program
    pyAlbum ....

    It took about 100 Seconds on this machine
    to generate the SlideShow for 31 images,
    which includes ....

    Generating ThumbNails
    Re-Sizing Images
    Writing a CSS Style Sheet
    Writing the Index HTML Page
    Generating the Individual HTML Pages

    This machine ....

    Compaq ...... 250 MHz
    Memory ...... 192 MB
    System ...... Win98_SE
    Python ...... 2.3 Enthought Edition
    PIL ......... 1.1.4

    So, for a S L O W machine,
    100 Seconds ain't too bad ....

    The edited version that I used ....

    o Re-coded some of the l o n g string concatenations
    and ''' Triple Quoted String ''' % ( w , x , y , z ... ) substitutions
    into join( list_xxx ) function calls
    which seemed a bit more readble/editable

    o Added a prompt and code for Including/Excluding links
    to Full-Size images

    o All other changes are basically coding style cosmetics ....

    Thanks again for a useful Python program ....

    Cousin Stanley
    Human Being
    Phoenix, Arizona
    Cousin Stanley, Apr 8, 2004
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?iso-8859-1?q?Premshree=20Pillai?=


    =?iso-8859-1?q?Premshree=20Pillai?=, Feb 26, 2004, in forum: Python
    Matt Gerrans
    Feb 27, 2004
  2. =?iso-8859-1?q?Premshree=20Pillai?=

    Re: pyAlbum

    =?iso-8859-1?q?Premshree=20Pillai?=, Feb 29, 2004, in forum: Python
    Duncan Booth
    Mar 1, 2004
  3. =?iso-8859-1?q?Premshree=20Pillai?= EXIF support added

    =?iso-8859-1?q?Premshree=20Pillai?=, Apr 12, 2004, in forum: Python
    Apr 12, 2004
  4. =?iso-8859-1?q?Premshree=20Pillai?= is now PyAC

    =?iso-8859-1?q?Premshree=20Pillai?=, Apr 14, 2004, in forum: Python
    Apr 14, 2004
  5. Guillaume Cottenceau

    [ANN] booh: static web-album generator

    Guillaume Cottenceau, Aug 11, 2005, in forum: Ruby
    Masao Mutoh
    Aug 11, 2005

Share This Page