Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howtos:window_managers:take_a_screenshot [2013/02/09 17:15 (UTC)]
hazel [To go further]
howtos:window_managers:take_a_screenshot [2016/02/03 23:05 (UTC)]
arfon ADDED: KSnapshot
Line 4: Line 4:
  
 Taking a screenshot can be done in several ways.\\ ​ Taking a screenshot can be done in several ways.\\ ​
-The easiest is to use a graphics program (for example The GIMP or xpaint) and choose the built-in screenshot or snapshot menu option. The method may be very different from one application to another, so I have chosen ''​xpaint''​ as an example.+The easiest is to use a graphics program (for example ​KSnapshot, ​The GIMPor xpaint) and choose the built-in screenshot or snapshot menu option. The method may be very different from one application to another, so I have chosen ''​xpaint''​ as an example.
  
 But you can't use this program to make a screenshot of a video or an image in full-screen,​ for example. To circumvent this, you can use the <​key>​PrtScr</​key>​ key (aka Print Screen), or use some command-line tools designed for the X window system. I'll quickly describe the basic switches of an X tool called ''​xwd'',​ and Imagemagick'​s ''​import''​ command. But you can't use this program to make a screenshot of a video or an image in full-screen,​ for example. To circumvent this, you can use the <​key>​PrtScr</​key>​ key (aka Print Screen), or use some command-line tools designed for the X window system. I'll quickly describe the basic switches of an X tool called ''​xwd'',​ and Imagemagick'​s ''​import''​ command.
Line 34: Line 34:
 <​code>​xwd | convert - path/​to/​screenshot.ext</​code>​ <​code>​xwd | convert - path/​to/​screenshot.ext</​code>​
  
-You will be provided with a crosshair, just select the window you want to capture. You can change the type of the output file only by changing the extension, for example ''​screenshot.png'',​ ''​screenshot.jpg'',​ ''​screenshot.gif'',​ etc. The ''​-''​ switch is to indicate to ''​convert''​ that it should translate from standard input rather than a file.+You will be provided with a crosshair ​tool; use it to select the window you want to capture. You can change the type of the output file only by changing the extension, for example ''​screenshot.png'',​ ''​screenshot.jpg'',​ ''​screenshot.gif'',​ etc. The ''​-''​ switch is to indicate to ''​convert''​ that it should translate from standard input rather than a file.
 <note tip>​Remember to raise the window you want to grab above the others. Otherwise every window which covers it will be replaced by black pixels (or black boxes) in the final capture. Which by the way can be an useful way to hide some parts of the output! For example if you take a screenshot of an xterm full of commands with some of your personal info displayed (passwords, IP addresses, ...), or a screenshot of a browser and you want to hide some tabs. Just place some windows over the one you want to capture.</​note>​ <note tip>​Remember to raise the window you want to grab above the others. Otherwise every window which covers it will be replaced by black pixels (or black boxes) in the final capture. Which by the way can be an useful way to hide some parts of the output! For example if you take a screenshot of an xterm full of commands with some of your personal info displayed (passwords, IP addresses, ...), or a screenshot of a browser and you want to hide some tabs. Just place some windows over the one you want to capture.</​note>​
  

In Other Languages
QR Code
QR Code howtos:window_managers:take_a_screenshot (generated for current page)