pyglet.image.codecs

Collection of image encoders and decoders.

Modules must subclass ImageDecoder and ImageEncoder for each method of decoding/encoding they support.

Modules must also implement the two functions:

def get_decoders():
    # Return a list of ImageDecoder instances or []
    return []

def get_encoders():
    # Return a list of ImageEncoder instances or []
    return []

Modules

bmp Decoder for BMP files.
dds DDS texture loader.
gif Read GIF control data.
png Encoder and decoder for PNG files, using PyPNG (png.py).
s3tc Software decoder for S3TC compressed texture (i.e., DDS).

Functions

add_decoders(module) Add a decoder module.
add_default_image_codecs()
add_encoders(module) Add an encoder module.
get_animation_decoders([filename]) Get an ordered list of decoders to attempt.
get_decoders([filename]) Get an ordered list of decoders to attempt.
get_encoders([filename]) Get an ordered list of encoders to attempt.

Variables

compat_platform = 'linux2'

str(object=’‘) -> string

Return a nice string representation of the object. If the argument is a string, the return value is the same object.

Notes

Defined

  • gdkpixbuf2
  • os
  • pil

Table Of Contents

Previous topic

AllocatorException

Next topic

pyglet.image.codecs.bmp