class documentation

Base class for PIL plugin decoders

Method decode Decodes an input buffer and sets the image to its contents
def decode(self, buffer): (source) ΒΆ

Decodes an input buffer and sets the image to its contents

Parameters
bufferThe input bytestream
Returns
The number of bytes consumed and the error code (-1, 0 on success)