Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pyscreenshot

How to install pyscreenshot

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pyscreenshot
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.2
0.3.2Never BuiltWhy not?
0.2.2 Available View build log
0.2.1 Available View build log
0.1.5 Available View build log
0.1.3 Available View build log
Windows (64-bit)
0.2.2
0.3.2Never BuiltWhy not?
0.2.2 Available View build log
0.2.1 Available View build log
0.1.5 Available View build log
0.1.3 Available View build log
Mac OS X (10.5+)
0.2.2
0.3.2Never BuiltWhy not?
0.2.2 Available View build log
0.2.1 Available View build log
0.1.5 Available View build log
0.1.3 Available View build log
Linux (32-bit)
0.2.2
0.3.2Never BuiltWhy not?
0.2.2 Available View build log
0.2.1 Available View build log
0.1.5 Available View build log
0.1.3 Available View build log
Linux (64-bit)
0.3.2 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
0.1.5 Available View build log
0.1.3 Available View build log
 
Author
License
BSD
Dependencies
Lastest release
version 0.3.2 on Jan 9th, 2014

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.

Links:
Goal:
Pyscreenshot tries to allow to take screenshots without installing 3rd party libraries. It is cross-platform but useful for Linux based distributions. It is only a pure Python wrapper, a thin layer over existing back-ends. Its strategy should work on most Linux distributions: a lot of back-ends are wrapped, if at least one exists then it works, if not then one back-end should be installed. Performance and interactivity are not important for this library.
Features:
Known problems:
  • not implemented: Capturing an active window
  • different back-ends generate slightly different images from the same desktop, this should be investigated
  • ImageMagick creates blackbox on some systems
  • PyGTK back-end does not check $DISPLAY -> not working with Xvfb
  • slow: 0.2s - 0.7s
Similar projects:

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 pip

  • install PIL

  • install at least one back-end

  • install the program:

    # as root
    pip install pyscreenshot
    
Ubuntu
sudo apt-get install python-pip
sudo pip install pyscreenshot
sudo apt-get install python-imaging
# optional back-ends
sudo apt-get install scrot
sudo apt-get install imagemagick
sudo apt-get install python-gtk2
sudo apt-get install python-qt4
# optional for examples
sudo pip install entrypoint2
Uninstall
# as root
pip uninstall pyscreenshot

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.