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 »

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: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: import -window usage

Post by magick »

Use xwininfo to extract the window id which you can then pass to the import program.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: import -window usage

Post by anthony »

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 »

Thanks alot! Works as expected.
Post Reply