Rendering Kivy Window as Image

Skip to first unread message

Peter Milani

Apr 17, 2024, 10:43:36 PMApr 17
to Kivy users support
Hi All,

I'm wanting to extract the kivy window render as an image so that I can send this to a hardware specific display driver, which only accepts images.

Specifically, I want to render using an Raspberry Pi on an eInk Screen from pimoroni. They have  a driver which works via the SPI and I2C interfaces on the Pi to update the screen.

Is there a way to extract an image that is to be rendered from the Kivy App instance or similar function?


Apr 17, 2024, 10:53:20 PMApr 17
to Kivy users support
There are 2 options that come to mind. 
  1. The widget method export_to_png(), you could apply this to the root widget to get the image. 

From: <> on behalf of Peter Milani <>
Sent: Wednesday, April 17, 2024 6:48 PM
To: Kivy users support <>
Subject: [kivy-users] Rendering Kivy Window as Image
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Peter Milani

Apr 30, 2024, 7:54:07 PMApr 30
to Kivy users support
Thanks! For some reason I didn't get this email (or it went to spam) and was going to come back and post about the Window.screenshot. But thanks for the widget method too!
Reply all
Reply to author
0 new messages