Closed Karol-G closed 4 years ago
Ok I manged to fix it myself:
from PIL import Image
from io import BytesIO
h, w, _, _, _, _ = session.console.display.get_screen_resolution(0)
image_data = session.console.display.take_screen_shot_to_array(0, h, w, virtualbox.library.BitmapFormat.png)
image_data = BytesIO(image_data)
image = Image.open(image_data)
Hi,
I am trying to make a screenshot from my VM with:
with h= 800 and w=600. I would expect that png has also a shape of (800, 600) or at least of (480000,), however the shape is (52812,). Why could that be? I don't know if this is related to #111 as I do not get an error.
Best Karol