asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.24k forks source link

Screenshot on Linux, OSX, Scrot and PIL #649

Open rodolfo0259 opened 2 years ago

rodolfo0259 commented 2 years ago

When trying to use screenshot() using pyautogui on Linux (Arch Linux), I needed to install not only scrot but also PIL ( pip install Pillow ) for everything to work correctly, otherwise it will fall in error on Image.open(tmpFilename) in the function "_screenshot_linux"

I think it should be added in the docs and/or installed together with pyautogui

JayRizzo commented 2 years ago

Hi @rodolfo0259, I hope you are doing well. I do see it under dependancies here: https://github.com/asweigart/pyautogui#dependencies

Is there another location that would make it more intuitive?