# Method Image.XCF.decode()

Method decode

  ```object`` decode(`string` `data`)`

Description

  Decodes a XCF image to a single image object.

Note

  Throws upon error in data, you will loose quite a lot of information by doing this. See Image.XCF._decode and Image.XCF.__decode

Method decode

  ``Image.Image` decode(`string` `what`, `mapping`|`void` `opts`)`

Description

  See _decode. This function returns the image member of the return mapping of that function.