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.
- Plugin based, it has wrappers for various backends:
scrot (recommended)
ImageMagick (it creates blackbox on some systems)
PyGTK (does not check $DISPLAY)
PIL (only on windows)
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
General
install setuptools or pip
install PIL
install at least one backend
install the program:
if you have setuptools installed:
# as root easy_install pyscreenshot
if you have pip installed:
# as root pip install pyscreenshot
Ubuntu
# one or more sudo apt-get install scrot sudo apt-get install imagemagick sudo apt-get install python-gtk2 # Python Imaging Library (required) sudo apt-get install python-imaging sudo apt-get install python-setuptools sudo easy_install pyscreenshot
Uninstall
# as root pip uninstall pyscreenshot
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyscreenshot-0.1.4.tar.gz
(33.7 kB
view hashes)