After searching in the Numpy mailing list. I found a link to the Image-SIG list:
http://www.mail-archive.com/image-sig@python.org/msg01482.html
And this seems to fix the problem.

Is this patch applied to the PIL code? If it is applied, from what version? Or
maybe still not released?

Thanks again.

On Tue, Jan 13, 2009 at 1:12 AM, Christopher Barker
<chris.bar...@noaa.gov> wrote:
> Zhang Chiyuan wrote:
>>
>> it seems that when ndim is 4, the mode is set to RGBA. I'm not familiar
>> with
>> the various image modes. However, I think it should be that shape[-1] == 4
>> instead of ndim == 4. And the same thing holds for 'RGB' and == 3.
>
> at first glance, I think you are correct. however, this sounds familiar, so
> it may have been already fixed (or a fixed posted here -- I don't know if it
> was applied)
>
> You might want to post this question to the numpy list -- that code was
> written by the numpy folks.
>
> -Chris
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R            (206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115       (206) 526-6317   main reception
>
> chris.bar...@noaa.gov
>



-- 
pluskid
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to