I'm trying to load .png images into a program using PIL.Image, so that I can manipulate them, ready for use as pygame surfaces in sprites. The following code shows how I've tried to convert those Pil Images into pygame images :
bytes = someImagefile.tobytes()
new_image = pygame.image.fromstring(bytes, size, "RGB")
I'm getting : "ValueError: String length does not equal format and resolution size"
Is there a way to do this without saving a new .png copy after I'm done with playing with it?