Pickle an image?

Michael Hoffman cam.ac.uk at mh391.invalid
Mon Apr 25 15:47:31 EDT 2005


GMane Python wrote:

>   I have a ( list | tuple | dictionary ) with several graphics in it.
> Trying to cPickle it to a file, I get errors.  For instance,
> UnpickleableError: Cannon pickle <type 'ImagingCore'> objects.
> 
>   Anyone know of a way to get around this?  I'd like to pickle a list or
> dictionary of about 5 .JPG images.

Have you tried converting the image objects to strings and back?
-- 
Michael Hoffman



More information about the Python-list mailing list