Skip to main content

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.

Plugin based, it has wrappers for scrot, ImageMagick and PIL.

home: https://github.com/ponty/pyscreenshot

Usage

Example:

import pyscreenshot as ImageGrab
# fullscreen
im=ImageGrab.grab()
im.show()
# part of the screen
im=ImageGrab.grab(bbox=(10,10,500,500))
im.show()
# to file
ImageGrab.grab_to_file('im.png')

Installation

You should install at least one backend on linux.

On Ubuntu:

# one of them
sudo apt-get install scrot
sudo apt-get install imagemagick

The easiest way to get pyscreenshot is if you have setuptools installed:

easy_install pyscreenshot

or if you have pip installed:

pip install pyscreenshot

Uninstall:

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.1.3
Filename, size File type Python version Upload date Hashes
Filename, size pyscreenshot-0.1.3.tar.gz (29.9 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