Re: [Numpy-discussion] bug using array with a PIL Image (misc.imread)

2009-07-07 Thread David Warde-Farley
That is some weird mojo; I'm guessing that numpy simply doesn't recognize the 'LA' type (luminance+alpha) as it's pretty uncommon. In the meantime you probably want to convert to RGBA, since that file giving you problems is grayscale+alpha channel, and a conversion to RGB might lose the alp

[Numpy-discussion] bug using array with a PIL Image (misc.imread)

2009-07-07 Thread Nicolas Pinto
Dear all, For some reason I have a problem converting a specific png image using array(). Here is what I am getting (using numpy 1.3.0 and scipy 0.7.0). % wget http://files.getdropbox.com/u/167753/spiky_adj_023.png % python -c "import numpy as np; import Image; print np.array(Image.open('spiky_a