[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dump root window to a JPG?



> I'm sure there is a cl method for dumping your X session to a file.  I
> 
> know this sounds stupid but taking a screenshot with something like
> the 
> Gimp or Ksnapshot doesn't quite work (I'm trying to get a screenshot 
> while playing mpeg2 streams).  The video just appears as a bright blue
> 
> box :-).  Any ideas or other proggie suggestions are welcome!

"import", which is part of the ImageMagick package will do it. A command
like this:

 import -window root screenshot.jpg

You can even add a delay in case you want to move a window or bring one
to the "front", etc, etc. For more help, the usual "man import" will
tell you all you need.

Regards
Hall



Reply to: