AGW Logo

agw_title PILImageHandler

This image handler loads and manipulates the thumbnails with the help of PIL (the Python Imaging Library).

hierarchy Inheritance Diagram

Inheritance diagram for: PILImageHandler

Inheritance diagram of PILImageHandler


method_summary Methods Summary

__init__Default class constructor.
HighlightImageAdjust overall image brightness to highlight.
LoadThumbnailLoad the file and rescale it.

API Class API

class PILImageHandler(object)[source]

This image handler loads and manipulates the thumbnails with the help of PIL (the Python Imaging Library).



__init__()[source]

Default class constructor.

Note

If PIL is not installed, this will raise an exception. PIL can be downloaded from http://www.pythonware.com/products/pil/ .



HighlightImage(img, factor)[source]

Adjust overall image brightness to highlight.

Parameters:


LoadThumbnail(filename, thumbnailsize)[source]

Load the file and rescale it.

Parameters:
  • filename – a file containing an image;
  • thumbnailsize – the desired size of the thumbnail.
Tree

Table Of Contents

Previous topic

NativeImageHandler

Next topic

ScrolledThumbnail