Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to take a screenshot in linux
#1

How to take a screenshot in linux.

 

To take a screenshot of your beautiful desktop you could either try pressing the 'Prt Scr' key (print screen) on the keyboard.... or if that fails (and it sometimes does) then try this.

 

Open a console and type the following:-



Code:
import -window root filename.ext




Where filename.ext is the filename you want to give to your work of art. You can then check the directory you are in, and there will be the screenshot waiting for you.

 

If you want to add a delay BEFORE the shot is taken (so you can move stuff out of the way) then add a sleep command as follows:-



Code:
sleep 3s; import -window root screenshot.png




The above waits 3 seconds before taking the screenshot and saves it in PNG format. That's it, have fun :)

 

cheers

 

anyweb

Reply
#2
if you have KDE installed you can use KSnapshot...
Reply
#3
If your in GNOME you can press the PrtSc button
Reply
#4

indeedy !

 

read my post again ;-)

 

Quote:To take a screenshot of your beautiful desktop you could either try pressing the 'Prt Scr' key (print screen) on the keyboard.... or if that fails (and it sometimes does) then try this.
 

 

i guess i should have pointed out that i use Gnome !

 

cheers

 

anyweb

Reply
#5
might be worth mentioning that "import" is a part of the ace "ImageMagick" tools :)
Reply
#6
Sorry anyweb I missed that bit but good little guide :)
Reply
#7

Hey there! Just wanted to add my two cents about using Gimp for Screen shots!!! I am currently using Gimp v2.3 and if you open gimp, the go to: File ----> Acquire ----> Screenshot, You will have a couple of choices if what you can do or when you can take a screen shot. This is helpful when you are using beryl or compiz and want to take a shot mid cube spin. In version 2.3 you can check the box that says take a screen shot of the entire screen, set it for 5 seconds so that you have time to rotate partway and then make sure you hold it still for less messed up pixelation. I like to this mainly in gimp because you can then take the screen shot and in the Gimp menu on top of the screen shot you can go: Image ----> Scale Image, You will then see a Sacle-Image box that shows the different measurements. I change the measurement from the default to percent and change the width to 50 and hit enter, then select the scale button at the bottom. Then I do a save as.. name my file, choose the best Quality, By reducing the size now you kill two birds with one stone, you make it smaller so that it's not so large in size, and you make it fit on the page where your posting it. Make sure that you rename it to .jpg instead of the gimp default .xcf. A similar screenshot at full resolution in the .xcf format yielded a 5.6 Mb image file.

 

Below is a screen shot that I took and reduced it by 50% and saved it as a jpg with quality equal to 100 percent. the total size for the file below was 364k.

 

 

[Image: f_screeniei_f661m_d35903dd.jpg]

 

The different versions of gimp have different features available, so YMMV. Also gimp v2.3 is the development version (v2.2 is the current stable version ;-))

 

Hope this helps!!

 

ITnet7

Reply
#8
I will use the gnome screenshot utility gnome-screenshot. Never fails. But this is a quite old post so I guess that any distro has a similar tool these days.
Reply
#9

They do - what were downloadable utilities of yesteryear now come included as standard on most modern distros.

 

Welcome to the forums, by the way!

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)