http://remike.homelinux.org/pyglet/index.php?topic=9.0

Discussed a bit further in that topic. It seems .gif support has been
broken somehow for Linux. If anyone else can test, that would be
great. Loading .gif animations with Ubuntu (PIL installed, GTK2.0 up
to date, non-development pyglet) with load_animation gives me this:

>    raise first_exception
> pyglet.image.codecs.ImageDecodeException: Unable to load: circlewalk.gif

This shows that all the decoders are failing for it. Switching
manually to a PIL decoder loads the image, but transparent pixels are
turned into black. Windows appears to load it just fine.


On Aug 19, 11:51 pm, Michael Red <[email protected]> wrote:
> Since that's what animations generally are, yes, it would. You can also use
> color key-ing. Load the .gif (where you replaced the background with a color
> that doesn't show up anywhere else, so you know what is transparent and what
> not), then go through each frame and where a pixel's color is like the
> transparent one you chose, set alpha to 0. It's a lot of work, generally.
> Better to use image switching.
>
> On 19 August 2011 23:42, Paul <[email protected]> wrote:
>
>
>
>
>
>
>
> > so it would not be an animation then right/?? it would just switch sprite
> > images at a time interval?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "pyglet-users" group.
> > To view this discussion on the web visit
> >https://groups.google.com/d/msg/pyglet-users/-/Kxqo9h2IupYJ.
>
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/pyglet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to