LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-13-2012, 03:16 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Lightweight way to make a screenshot on a given part of the screen?


Hi,

I would like sthg fast than scrot, extremely lightweight, to make a little png of start X=100 Y=100 (in pixels) or size X_size=200 Y_Size=200.

It is likely possible with many solutions, but what is the fastest, quickest, lightest solution?

Thank you for you advice
 
Old 01-13-2012, 03:53 PM   #2
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 211

Rep: Reputation: 67
I'd toss a coin between imagemagick and the PIL. Fastest, quickest and lightest on your time is likely to be imagemagick:
Code:
$ import shot.png | convert -crop 200x200+100+100 shot.png cropped.png
 
1 members found this post helpful.
Old 01-13-2012, 04:38 PM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by jthill View Post
I'd toss a coin between imagemagick and the PIL. Fastest, quickest and lightest on your time is likely to be imagemagick:
Code:
$ import shot.png | convert -crop 200x200+100+100 shot.png cropped.png
I was considering the xwd -silent -id if I can get the x11 id. But I am not sure
 
Old 01-14-2012, 12:41 AM   #4
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 211

Rep: Reputation: 67
I see xwd doesn't wait, I like yours better.
Code:
$ xwd -root -silent -out shot.xwd; convert -crop 200x200+100+100 shot.xwd shot.png
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lightweight Desktop for a given area size of the screen? frenchn00b Linux - Software 0 06-12-2011 06:50 AM
Full screen screen shots -- Screenshot program with hotkeys studpenguin Linux - General 1 03-10-2009 11:58 PM
How to Make A ScreenShot shorto Linux - Newbie 2 01-24-2007 02:42 PM
Taking a screenshot of your KDM screen JaySuSE SUSE / openSUSE 12 04-27-2005 01:20 PM
How do I make xclock appear on a certain part of my screen ? .. purpleburple Linux - General 2 07-18-2002 10:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:20 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