import -window usage

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
cletcher

import -window usage

Post by cletcher » 2008-08-20T11:32:35-07:00

Hi,
How do I determine the identity of a window that I would like to capture an image of with the 'import -window' command?

Thanks

User avatar
magick
Site Admin
Posts: 10935
Joined: 2003-05-31T11:32:55-07:00

Re: import -window usage

Post by magick » 2008-08-20T11:38:56-07:00

Use xwininfo to extract the window id which you can then pass to the import program.

User avatar
anthony
Posts: 8882
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: import -window usage

Post by anthony » 2008-08-20T21:36:19-07:00

Basically you need to use xwininfo, or some other method, to determine the X window ID. For example, XTerms also include a WINDOWID environment variable.

For the whole screen you can just specify 'root'.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

cletcher

Re: import -window usage

Post by cletcher » 2008-08-21T07:05:22-07:00

Thanks alot! Works as expected.

Post Reply