To be more specific, I'm getting an ImageEncodeException raised with error
"KeyError('TGA',)" in PILImageEncoder.encode(), coming out of
pil_image.save() which has a pil_format of 'TGA'.  It looks like the SAVE
dictionary doesn't have support for TGA in it as a result of register_save
never being called.  It doesn't seem like PIL's init() loads up TGA support
by default?

On Mon, Nov 3, 2008 at 6:31 PM, Brian Hook <[EMAIL PROTECTED]> wrote:

> It's a KeyError on the key 'TGA'
>
>
> On Mon, Nov 3, 2008 at 4:00 PM, Alex Holkner <[EMAIL PROTECTED]>wrote:
>
>>
>> On 11/4/08, Brian Hook <[EMAIL PROTECTED]> wrote:
>> > Thanks for the response.  I assume you mean specifying the 'encoder'
>> kwarg
>> > in AbstractImage.save() -- what encoder do I specify?  AFAIK, there's no
>> > specific TGA encoder, and if I send it the PILImageEncoder I get the
>> same
>> > problem (since it has the file extensions in it).  If I create an
>> instance
>> > and override its get_file_extensions(), I get the same exception as
>> before,
>> > it looks like the problem happens somewhere in Image.save() since the
>> > extension isn't registered?
>>
>> What exception are you getting?
>>
>> Alex.
>>
>> >>
>>
>

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