When you have an image file that has multiple layers in it, it is possible to specify which layer you want to load by appending the image layer in square brackets after the file name e.g.

$files = [
    realpath("images/LayerTest.psd")."[1]",
    realpath("images/LayerTest.psd")."[2]",
];

Will load just layers 1 and 2 from the source PSD file


When you have an image file that has multiple layers in it, it is possible to specify which layer you want to load by appending the image layer in square brackets after the file name e.g.

$files = [
    realpath("images/LayerTest.psd")."[1]",
    realpath("images/LayerTest.psd")."[2]",
];

Will load just layers 1 and 2 from the source PSD file