This is documentation for an old release of SciPy (version 0.9.0). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.misc.imsave

scipy.misc.imsave(name, arr)

Save an array to an image file.

Parameters :

im : PIL image

Input image.

flatten : bool

If true, convert the output to grey-scale.

Returns :

img_array : ndarray

The different colour bands/channels are stored in the third dimension, such that a grey-image is MxN, an RGB-image MxNx3 and an RGBA-image MxNx4.

Previous topic

scipy.misc.imrotate

Next topic

scipy.misc.imshow

This Page