[SciPy-User] scipy.misc.lena returns wrong array type?

Bill Janssen bill.janssen@gmail....
Tue Nov 15 17:05:47 CST 2011

I've been trying to figure out why scipy.misc.lena() return an array
of 8-bit grayscale values but with the dtype as int32.  Seems to me it
should be an array of uint8?  As an added bonus, then this would then
work with the PIL .fromarray() method, which it currently doesn't,
because PIL thinks that arrays of int32 are RGB or RGBA images).

More information about the SciPy-User mailing list