[Image-SIG] Bug in the mode recognition code of Image.fromarray?
pluskid at gmail.com
Tue Jan 13 02:41:09 CET 2009
After searching in the Numpy mailing list. I found a link to the Image-SIG list:
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?
On Tue, Jan 13, 2009 at 1:12 AM, Christopher Barker
<Chris.Barker at noaa.gov> wrote:
> Zhang Chiyuan wrote:
>> it seems that when ndim is 4, the mode is set to RGBA. I'm not familiar
>> 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.
> Christopher Barker, Ph.D.
> 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.Barker at noaa.gov
More information about the Image-SIG