469,339 Members | 8,437 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,339 developers. It's quick & easy.

Screen capture on Linux

Hi,

I need to capture a screen snapshot in Linux. PIL has a module
IageGrab, but in the free version it only works under Windows. Is
there any package to capture the screen on Linux?

Thnx
PAolo
Oct 21 '06 #1
4 3752
Paolo Pantaleo wrote:
Hi,

I need to capture a screen snapshot in Linux. PIL has a module
IageGrab, but in the free version it only works under Windows. Is
there any package to capture the screen on Linux?
xwd comes with the X server. man xwd

Most useful is "xwd -root" or similar. You may want "sleep 5; xwd
-root" to give you some time to set things up as needed, or map it to a
window manager keybinding.

Oct 22 '06 #2
On 22 Oct 2006 09:06:53 -0700, sj*******@yahoo.com <sj*******@yahoo.comwrote:
Paolo Pantaleo wrote:
Hi,

I need to capture a screen snapshot in Linux. PIL has a module
IageGrab, but in the free version it only works under Windows. Is
there any package to capture the screen on Linux?

xwd comes with the X server. man xwd

Most useful is "xwd -root" or similar. You may want "sleep 5; xwd
-root" to give you some time to set things up as needed, or map it to a
window manager keybinding.
The problem with that is that xwd format is a non-standard format, and
*uncompressed* on top of that. If he wants to distribute the image to
friends, or whatever, he'll have to convert it to something like png
anyway. If he's using Linux, he probably doesn't need to use xwd
anyway and might as well save himself the effort (and HD space) now.

-- Theerasak
Oct 22 '06 #3
Thnx everybody for the help,

actually I need somethin slightly different. I found about some
external process that can capture the screen, but since I need to
captyre the screen up to 4-5 times a second, I don't want to fork a
new process every time, so I was looking for some library...[This
method works good on Windows]

If needed, I was thinking to write a C module too. I never did it
before, but I am a not so bad C programmer... any suggestion? What
code can I read and eventually reuse? Would the xwd be useful?

Anyway doesn't it exist a Python binding for let's say X APIs ?
[I know about nothing about X programing]

2006/10/22, Theerasak Photha <ha********@gmail.com>:
On 22 Oct 2006 09:06:53 -0700, sj*******@yahoo.com <sj*******@yahoo.comwrote:
Paolo Pantaleo wrote:
Hi,
>
I need to capture a screen snapshot in Linux. PIL has a module
IageGrab, but in the free version it only works under Windows. Is
there any package to capture the screen on Linux?
xwd comes with the X server. man xwd

Most useful is "xwd -root" or similar. You may want "sleep 5; xwd
-root" to give you some time to set things up as needed, or map it to a
window manager keybinding.

The problem with that is that xwd format is a non-standard format, and
*uncompressed* on top of that. If he wants to distribute the image to
friends, or whatever, he'll have to convert it to something like png
anyway. If he's using Linux, he probably doesn't need to use xwd
anyway and might as well save himself the effort (and HD space) now.

-- Theerasak
--
http://mail.python.org/mailman/listinfo/python-list
Oct 23 '06 #4
Paolo Pantaleo wrote:
If needed, I was thinking to write a C module too. I never did it
before, but I am a not so bad C programmer... any suggestion? What
code can I read and eventually reuse? Would the xwd be useful?

Anyway doesn't it exist a Python binding for let's say X APIs ?
http://sourceforge.net/projects/python-xlib

(that's an X protocol client, not a binding to X's standard C library).

</F>

Oct 24 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Me Mine | last post: by
5 posts views Thread by TerryWilson | last post: by
2 posts views Thread by Eddie Dunn | last post: by
2 posts views Thread by py | last post: by
2 posts views Thread by pailleg | last post: by
2 posts views Thread by dumbledad | last post: by
reply views Thread by Jim McGivney | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.