[PyQt] Image handling issues

Nahuel Defossé nahueldefosse at yahoo.com.ar
Sat Dec 6 19:12:50 GMT 2008


El Saturday 06 December 2008 01:08:15 Nahuel Defossé escribió:
> Hi,
> I'm trying to build a GUI for a CLI application which works with PIL
> (Python Imaging Library). I'm experiencing image corruptions when I work
> with any format but jpeg on a QGraphicsView/QGraphicsScene. I'm not sure if
> this is a PyQt4 issue or a PIL issue.
> Code attached.
> I'm working on Ubuntu 8.04 with stock PyQt4 and PIL (python-imaging).
>
> Regards
> Nahuel
Well, I've finally worked it out. I just had to set the format to RGB.
image.convert('RGB')
Regards



More information about the PyQt mailing list