# Method Image.load_layers()

Method load_layers

  ``array`(`Image.Layer`) load_layers(`void`|`object`|`string` `file`, `mixed`|`void` `opts`)`

Description

  Helper function to load all image layers from a file. If no filename is given, Stdio.stdin is used. The loaded file is decoded with decode_layers. Extra arguments to the image types layer decoder, e.g. for XCF files, can be given in the `opts` mapping.