Curt (12022-07-27):
> I've Imagemagick installed, so
> 
>  import image.png

This is my go-to solution too. Except when I want to capture the mouse
pointer too, in this case I use “ffmpeg -f x11grab”.

I would advise to add -depth 8; otherwise the PNG needlessly uses 16
bits per component.

> from a terminal works (though it seems you're confined to the active
> window).

import immediately makes a server grab to capture the mouse and let you
click on the window you want to import. If you need a few seconds to
focus the window you want to capture:

sleep 2; import -depth 8 image.png

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: PGP signature

Reply via email to