In OpenGL we're interested in the raw binary data for an image
This can be obtained with the tostring() function
img = Image.open("foo.jpg") glDrawPixels(img.size[0], img.size[1], GL_RGB, GL_UNSIGNED_BYTE, img.tostring())