LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Imagemagick Import command help (https://www.linuxquestions.org/questions/linux-software-2/imagemagick-import-command-help-505020/)

lj4 11-26-2006 12:39 PM

Imagemagick Import command help
 
I'm trying to take a screenshot of a specific window. First I do a xwininfo to get the window ID and then I do a

Code:

import -window 0x2123243 test.jpg
My problem is that it doesn't just capture the window I specified, it takes whatever is on the screen.

Is there a way to get a screenshot of a specific window without having to click on it?

bigrigdriver 11-27-2006 08:35 AM

You can add the -crop option to the command to get just the part you want. See the import man page, Examples section for an example.


All times are GMT -5. The time now is 11:29 PM.