image lib & Qt4

Fredrik Lundh fredrik at pythonware.com
Sat Jun 3 09:19:55 EDT 2006


K.S.Sreeram wrote:

> I'm getting an 'unknown raw mode' error on ImageQt.py:59:
>   data = im.tostring( "raw", "BGRX" )
> 
> Does this only work with PIL 1.1.6 snapshots? I currently have
 > PIL 1.1.5.

it was developed on Python 2.4.3 and PIL 1.1.5, so it should work.  and 
BGRX support has been in there for ages (at least since 1.1.1).

what happens if you do:

$ python
 >>> import Image
 >>> im = Image.new("RGB", (100, 100))
 >>> print len(im.tostring("raw", "BGRX"))
40000

</F>




More information about the Python-list mailing list