PyEmbeddedImage with an Animated Gif

Hello,

I was wondering how you would go about using the PyEmbeddedImage (or another class that allows you to compress an image to base64 and load it that way) with an animated gif image.

Thanks
~Cody

The img2py tool will convert the image to a PNG first, so that will lose your image's animation frames and timing information. However with the addition of PyEmbeddedImage it's not locked in to using the code and data output from the img2py tool because it should be able to recognize image data in other formats as well. You can create the b64 data in other ways if you want and make a PyEmbeddedImage by hand, or write a simple tool for it.

OTOH, I think that the animation classes do not have the APIs exposed that would let you load the images from memory, so if you're using them then you will probably need to either leave the image files on disk, or write them back to disk before you load them into the animation control.

···

On 10/23/11 7:45 PM, Cody Woolaver wrote:

Hello,

I was wondering how you would go about using the PyEmbeddedImage (or
another class that allows you to compress an image to base64 and load it
that way) with an animated gif image.

--
Robin Dunn
Software Craftsman