473,503 Members | 544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3978
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
13448
by: Me Mine | last post by:
i, I have trying to code a small console app that will allow a user to select a window and then create a screen capture of the window. I haven't been able to figure out how to do the screen...
5
2368
by: TerryWilson | last post by:
I am developing a web based service tool using asp.net that we will distribute with our product. This service tool will be used for remotely configuring the product, problem determination, etc. ...
2
2195
by: Eddie Dunn | last post by:
I have one here that I cannot find anything on in my searching. I am implementing a screen capture functionality into my Visual Basic ..NET application. The code I am using calls the bitblt...
2
2401
by: py | last post by:
I need to take a screen shot of the computer screen. I am trying to use PIL and I saw there is ImageGrab...however it only works on Windows. Is there a platform-independent ability to work...
2
1642
by: pailleg | last post by:
Is C the best language to program a screen capture application that could either grab real text or image as text and store it in an automated and predifined mode in a DB (no regard if it's Windows,...
2
6599
by: dumbledad | last post by:
Hi All, I'm using ASP.Net web services to provide the logic required for a Flash based prototype. The Flash and the ASP .Net run together on the client machine. One of the functions I'd like to...
1
4489
by: JP2006 | last post by:
I'm trying to write a control that will take a screen capture of a particular website when a user submits a form in a web application; one of the form fields is for a URL - the control needs to get...
0
1240
by: Jim McGivney | last post by:
I have goggled "Asp.net Screen Capture" and looked at many articles, but have never succeeded in a screen capture. Has anyone been able to accomplish Screen Capture in 2005 VWD C# ? Let me know...
2
2783
by: raylopez99 | last post by:
Beware newbies: I spent a day before I figured this out: copying a bitmap (image) file to file is not quite like copying a text file--you have to do some tricks (see below), like using a...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7087
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5579
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.