mirror of
https://github.com/dnet/pySSTV.git
synced 2025-12-06 07:12:00 +01:00
image_gimp_to_pil: discard invisible layers before merge
This commit is contained in:
parent
3d68f7cc5b
commit
b8ef35022b
|
|
@ -158,6 +158,9 @@ def transmit_current_image(image, drawable, mode, vox, fskid):
|
|||
def image_gimp_to_pil(image):
|
||||
try:
|
||||
sandbox = image.duplicate()
|
||||
for layer in sandbox.layers:
|
||||
if not layer.visible:
|
||||
sandbox.remove_layer(layer)
|
||||
sandbox.merge_visible_layers(CLIP_TO_IMAGE)
|
||||
layer = sandbox.layers[0]
|
||||
if not layer.is_rgb:
|
||||
|
|
|
|||
Loading…
Reference in a new issue