Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > pyAlbum.py - Python Album Generator

Reply
Thread Tools

pyAlbum.py - Python Album Generator

 
 
=?iso-8859-1?q?Premshree=20Pillai?=
Guest
Posts: n/a
 
      04-07-2004
Hello people,

I recently updated one of my Python scripts --
pyAlbum.py
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
offers.

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
(http://www.pythonware.com/products/daily)

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

You can see a sample of an album created using this
script at
http://www.premshree.resource-locato...mple/index.htm

Oh, and the script itself is available at
http://aspn.activestate.com/ASPN/Coo.../Recipe/271246

I hope it's useful.

Sincerely,
Premshree Pillai

__________________________________________________ ______________________
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
Go to: http://in.insurance.yahoo.com/licspecial/index.html

 
Reply With Quote
 
 
 
 
Cousin Stanley
Guest
Posts: n/a
 
      04-08-2004
Premshree ....

Thanks for making your pyAlbum.py 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 ....

http://fastq.com/~sckitching/Album_01

Photography by .... John C. Schluterbusch

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

http://premshree.resource-locator.com/python/pyAlbum.py

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 ....

http://fastq.com/~sckitching/Python/pyAlbum.py

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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UART with fractional baudrate generator ? Or fractional baudrate generator alone Martin Maurer VHDL 3 04-19-2006 01:26 PM
subtle side effect of generator/generator expression bonono@gmail.com Python 9 10-16-2005 06:42 PM
[ANN] booh: static web-album generator Guillaume Cottenceau Ruby 5 08-11-2005 04:25 PM
Try DVD Photo Album version 3.01 to make digital photo album playable on TV with DVD player Michael Shaw Digital Photography 1 09-24-2004 09:10 AM
generator function within a generator function doesn't execute? TheDustbustr Python 1 07-25-2003 10:45 AM



Advertisments