LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-26-2006, 12:39 PM   #1
lj4
LQ Newbie
 
Registered: Nov 2005
Distribution: Slackware 10.2
Posts: 4

Rep: Reputation: 0
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?
 
Old 11-27-2006, 08:35 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
command line image manipulation (imagemagick?) exodist Linux - Software 3 03-13-2006 01:35 PM
ImageMagick -- Command line Graphical Suite LinuxLala Linux - News 1 07-20-2005 08:40 AM
Import sys ?bash: import: command not found joirnange Linux - Newbie 4 12-28-2004 10:33 PM
import - Command Not Found bpellet314 Linux - Software 1 11-17-2004 10:22 AM
import command doralsoral Linux - Software 1 05-16-2004 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration