import HTMLgen
class Image def __init__(self, filename='', **kw) def __repr__(self) def calc_rel_path(self, from_dir=None)
alias IMG = Image
The filename argument is a filename, or URL of a graphic image, or a triple of ( filename, width, height ) where dimensions are in pixels. Where the filename is found to be a valid pathname to an existing GIF file that file will be read to determine its width and height properties.
Calculate the relative path from
from_dir
to the
absolute location of the image file.
Sets self.prefix.
Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedric@phoenix.net
Generated: Mon Dec 2 1996