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 []
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). |
ImageDecoder | |
ImageEncoder |
ImageDecodeException | |
ImageEncodeException |
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. |
str(object=’‘) -> string
Return a nice string representation of the object. If the argument is a string, the return value is the same object.
Defined