'PyAutoGui screenshots are black
Screenshots taken from PyAutoGui are black.
import pyautogui
pyautogui.screenshot('ss1.png')
pag.screenshot('ss2.png', region=(0,0, 200, 100))
I'm using Fedora
Solution 1:[1]
According to docs the screenshot function needs scrot
to be installed on a Linux system to work.
In Fedora:
sudo dnf install scrot
In Arch:
sudo pacman -S scrot
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | bfris |