PNMImage to PIL?

Thank you drwr, I will have a look into that.

I would very much like to do that, but I did not find any way to do so, because I am not loading just any image into PNMImage, I’m loading a rendered image directly from Panda3D renderer, and it seems noone knows of a better way to save a rendered image than storing it into a PNMImage first.

Here is how I get the rendered image into a PNMImage via getScreenshot:
panda3d.org/forums/viewtopic … 8655#88655

If you know of any other way to directly store the rendered image anto anything else than PNMImage, it would be of great use to me!