Imagegrab from file code example Example: imagegrab.grab() save to file im = ImageGrab.grabclipboard() im.save("screenshot.jpg", "JPEG")