Script generator :: Class Image |
[hide private]
[frames] | no frames]

# Class Image

Image specific processing and storage.

Instance Methods | [hide private]
__init__(self, dir, base) Constructor. |
init(self, dirattrfile=None) Performs proper initialization. |
__repr__(self) |
cleanAlts(self) Clean up found alt.repns, thumbnails, attributes files, etc. |
selectName(self, absdirname) Select base file (image file) for image page generation. |
handleDescription(self, attrfile) Two description files, with precedence for the first. |
generateThumbnail(img) Generates a thumbnail for an image. |
generateScaled(img) Generates a scaled image for screen size. |

Method Details | [hide private]

### __init__(self, dir, base) (Constructor) |
Constructor. Initialize to accumulation information.

### selectName(self, absdirname) |
Select base file (image file) for image page generation. Returns true if it could find a suitable one.

### generateThumbnail(img) |
Generates a thumbnail for an image. Make it so that the longest dimension is the specified dimension.

### generateScaled(img) |
Generates a scaled image for screen size. Make it so that the longest dimension is the specified dimension.