Home > Enterprise >  PyAutoGui screenshots are black
PyAutoGui screenshots are black

Time:04-23

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

CodePudding user response:

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

CodePudding user response:

I'm having this issue as well using Arch. I'm going to see if it happens on Mac later

  • Related