Thanks.

Yes I discovered that scaling didn't work with images that are larger
than supported.
I had hoped that PILImageDecoder would take a PIL image instance, as
in:

from pyglet.image.codecs.pil import PILImageDecoder
kitten = pyglet.image.load('kitten.pil', decoder=PILImageDecoder())

but obviously I didn't completely understand how that worked. So now I
am working with temporary files of resized images from pil.

Greetings,
Klaas

On Jul 11, 12:56 am, Tristam MacDonald <[email protected]> wrote:
> On Fri, Jul 10, 2009 at 6:46 PM, Woodwolf <[email protected]> wrote:
>
> > Wasn't it just image.scale(scale)?
>
> Not if the image is larger than supported by the underlying OpenGL
> implementation. Typically this will be something like 4096x4096, or
> 2048x2048 on older cards.
> The simplest solution is to resize the image to a
> supported size before attempting to load it into pyglet.
>
> --
> Tristam MacDonaldhttp://swiftcoder.wordpress.com/

--~--~---------~--~----~------------~-------~--~----~
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