I am still experimenting with Pillow and UI images...
Now I try to convert a small UI image into a Pillow image, but somehow this doesn't work. First I tried:
ui_image = appex.get_images(image_type='ui')
pil_image = ui_image.to_png()
print(pil_image.size)
This gives my an error because ui_image.to_png() doesn't seem to create a Image (but only the data).
Then I thought about
...
s = ui_image.size
pil_image = Image.frombuffer(mode, size, ui_image.to_png())
but here I have no idea what to use for mode...
Any idea how to convert an UI image to a Pillow image?