Platforms: IRIX
Deprecated since version 2.6: The imgfile module has been deprecated for removal in Python 3.0.
The imgfile module allows Python programs to access SGI imglib image files (also known as .rgb files). The module is far from complete, but is provided anyway since the functionality that there is enough in some cases. Currently, colormap files are not supported.
The module defines the following variables and functions:
This function is identical to read but it returns an image that is scaled to the given x and y sizes. If the filter and blur parameters are omitted scaling is done by simply dropping or duplicating pixels, so the result will be less than perfect, especially for computer-generated images.
Alternatively, you can specify a filter to use to smooth the image after scaling. The filter forms supported are 'impulse', 'box', 'triangle', 'quadratic' and 'gaussian'. If a filter is specified blur is an optional parameter specifying the blurriness of the filter. It defaults to 1.0.
readscaled() makes no attempt to keep the aspect ratio correct, so that is the users’ responsibility.
38.8. gl — Graphics Library interface
38.12. jpeg — Read and write JPEG files
Enter search terms or a module, class or function name.