Skip to main content

python screenshot

Project description

The pyscreenshot module can be used to copy the contents of the screen to a PIL image memory or file. Replacement for the ImageGrab Module, which works on Windows only.

Known problems:
  • not implemented: Capturing an active window
  • different backends generate slightly different images from the same desktop, this should be investigated
  • ImageMagick creates blackbox on some systems
  • PyGTK backend does not check $DISPLAY -> not working with Xvfb
  • slow: 0.2s - 0.7s
Similar projects:



import pyscreenshot as ImageGrab

# fullscreen

# part of the screen

# to file



  • install pip

  • install PIL

  • install at least one backend

  • install the program:

    # as root
    pip install pyscreenshot


# one or more
sudo apt-get install scrot
sudo apt-get install imagemagick
sudo apt-get install python-gtk2
sudo apt-get install python-qt4
sudo apt-get install python-wxversion

# Python Imaging Library (required)
sudo apt-get install python-imaging

sudo apt-get install python-pip
sudo pip install pyscreenshot


# as root
pip uninstall pyscreenshot

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyscreenshot, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size pyscreenshot-0.2.2.tar.gz (36.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page