I am using cvzone to overlay one transparent image onto another image and then saving them using PIL, but the resultant image does not have a transparent background
import cvzone
import cv2
import numpy as np
import PIL
from PIL import Image
imgBack = cv2.imread("Robot/Body/0_base colour.png")
imgFront = cv2.imread("Robot/Clothing/2_tux.png", cv2.IMREAD_UNCHANGED)
new_size = (300, 300)
resized_img_front = cv2.resize(imgFront, new_size)
resized_img_back = cv2.resize(imgBack, new_size)
result_img = cvzone.overlayPNG(resized_img_back, resized_img_front)
final_img = Image.fromarray(result_img)
final_img.save("combined.png")
cv2.imshow("back", result_img)
cv2.waitKey(0)
Am i missing something that i also need to do to make my final image transparent as well, like is there any subroutine for that