import ImageGrab fails on Ubuntu 10.04

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Tue Nov 2 00:30:39 CET 2010


In message <4ccd954f$0$12350$426a74cc at news.free.fr>, News123 wrote:

> Is there any other way to make screen shots in Linux, ideally without
> creating an intermediate file

The ImageMagick “import” command lets you grab the contents of any window 
(including the root window) from your X server 
<http://www.imagemagick.org/script/import.php>. It wants an output filename, 
but of course that can be /dev/stdout, e.g.

    import -window root /dev/stdout | display




More information about the Python-list mailing list