Gimp.file_load_layers

@accepts(Gimp.RunMode, Gimp.Image, Gio.File, int)
@returns([Gimp.Layer])
def file_load_layers(run_mode, image, file, num_layers):
    # Python wrapper for gimp_file_load_layers()
  

Loads an image file as layers for an existing image.

This procedure behaves like the file-load procedure but opens the specified image as layers for an existing image. The returned layers needs to be added to the existing image with Gimp.Image.insert_layer.

Since 2.4

run_mode

The run mode.

image

Destination image.

file

The file to load.

num_layers

The number of loaded layers.

Returns