When exporting a PSD with a group from GIMP, it seems to add a layer with empty (0-byte length) channels tagged as RleCompressed. This was crashing the 'read_layer_channels' as it was accessing a 0-length array.
This quick fix spots this 0-length situation and changes the compression type to RawData.
When exporting a PSD with a group from GIMP, it seems to add a layer with empty (0-byte length) channels tagged as RleCompressed. This was crashing the 'read_layer_channels' as it was accessing a 0-length array.
This quick fix spots this 0-length situation and changes the compression type to RawData.