GIMP Python-fu exporting file only exports transparent layer
I am having issues saving images in python via GIMP. I can get the image and apply the effects I want, but when I go to save, it only saves one layer and not everything (NOTE: The background is transparent) and because the background is transparent, I cannot get it to save anything besides the transparent background. The code I am using is posted below: image_array = gimp.image_list() i=0 for image in image_array: img = image_array[i] layers = img.layers last_layer = len(layers)-1 try: disable=pdb.gimp_image_undo_disable(img) pdb.gimp_layer_add_alpha(layers[0]) drw = pdb.gimp_image_active