Re: Image.frombuffer and warning

2010-03-03 Thread News123
Hi Peter, Peter Otten wrote: > News123 wrote: > I cannot reproduce the problem: > > $ cat frombuffer.py > import sys > import Image > wx = 3 > wy = 2 > buf = "a"*wx*wy > if "--fixed" in sys.argv: > Image.frombuffer("L", (wx, wy), buf, "raw", "L", 0, 1) > else: > Image.frombuffer("L", (wx,

Re: Image.frombuffer and warning

2010-03-03 Thread Peter Otten
News123 wrote: > I am using the PIL function from_buffer in python 2.6.4 > > I am having the line > im2 = Image.frombuffer('L',(wx,wy),buf) > > > I receive the warning: >> ./pytest.py:63: RuntimeWarning: the frombuffer defaults may change in > a future release; for portability, change the call

Image.frombuffer and warning

2010-03-02 Thread News123
Hi, I am using the PIL function from_buffer in python 2.6.4 I am having the line im2 = Image.frombuffer('L',(wx,wy),buf) I receive the warning: > ./pytest.py:63: RuntimeWarning: the frombuffer defaults may change in a future release; for portability, change the call to read: > frombuffer(mode