I am trying to get an image with an alpha channel and a color profile of sRGB IEC61966-2.1.
The image I am starting with does not have an alpha channel but it does have the color profile I want. see starting image
If I run the following,
from PIL import Image
img = Image.open('84.png')
print(img.mode)
img.convert('RGBA').save('84a.png')
I get an alpha channel, but the color profile seems to be gone. see ending image. Note that img.mode is 'P'. I saw this solution, but I would like to do it without cv2 if possible. Also I think that solution is starting with an image that already has an alpha channel. Maybe it applies and I am missing something.
Thank you