[Image-SIG] PIL and swapping colors

loz.accs loz.accs at gmail.com
Fri Nov 5 07:16:26 CET 2010


Hi, everyone!
PIL doesn't provide screenshots making on linux, so I wrote
C-extension that uses Imlib2 to grab screenshots in raw RGBA format
and returns it to python interpreter.

Image object (Image.fromstring) was created successfully, but red and
blue colors was swapped.
So my question: is there any way to swap colors in image using PIL?
And why don't you make linux version of ImageGrab, based on Imlib2 for example?


More information about the Image-SIG mailing list