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,
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
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