While "image" and "picture" are synonymous in English, I'm sure most of you are aware that they are not in Python.

By "picture" I'm referring to the type used by the Picture.py module. By "image" I am referring to the type used by Image.py and ImageOps.py.

There are useful functions in both modules, and although I can convert from picture to image by simply using

image = picture.get_image()

I don't know how to go from the image back to the picture?

I've found an inefficient way by saving the image as a temporary file (image.save(tempfile)) and using make_picture(tempfile). But obviously this is not ideal. Is there a way to do this without going through external files?

Thanks a lot!
Btw, this is my first post. Hello everyone!

-Areeb

I searched my whole Python25 installation and did not find a Picture.py file. Where does that file come from?

Also quite a few libraries have an Image.py file. Which one are you importing?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.