LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to take a screen image in Linux (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-take-a-screen-image-in-linux-4175579222/)

clawinus 05-07-2016 09:41 AM

How to take a screen image in Linux
 
In Windows I was used to press the keyboard button "Prnt Scrn" and then transfer the image from the clipboard into the image processing program.
The print screen button seems to be inactive in Linux.
How can I activate it or use an alternative method?

dwnthk 05-07-2016 10:12 AM

Quote:

Originally Posted by clawinus (Post 5541829)
In Windows I was used to press the keyboard button "Prnt Scrn" and then transfer the image from the clipboard into the image processing program.
The print screen button seems to be inactive in Linux.
How can I activate it or use an alternative method?

I use a program called KSnapshot.

keefaz 05-07-2016 10:20 AM

if you have imagemagick installed,
Code:

import -window root image.png

cwizardone 05-07-2016 10:30 AM

Quote:

Originally Posted by clawinus (Post 5541829)
In Windows I was used to press the keyboard button "Prnt Scrn" and then transfer the image from the clipboard into the image processing program.
The print screen button seems to be inactive in Linux.
How can I activate it or use an alternative method?

What desktop are you using?
In KDE-4.14.3, hit the print screen button and it launches KSnapshot, which takes a picture of the screen, and from there you can do whatever you want with it.

DavidMcCann 05-07-2016 10:35 AM

Welcome to the Forum!

The PrtScr key should work: sometimes you get a box pop up to ask you where to put the screenshot, sometimes it's just put in the Pictures folder. You can also just get a shot of the uppermost window with Alt-PrtScr. Somewhere in the menu there should be a keyboard shortcut configuration tool where you can check that the use of the key is set.

This assumes you have one of the fully-featured desktops, like Xfce, KDE, Gnome, Mate, or Unity. If you have a simple window-manager you'll need to get a program. That's why it's a good idea to tell us what distribution and GUI you're using when you ask a question. KSnapshot is for KDE (and discontinued), but Scrot will work on anything:
https://en.wikipedia.org/wiki/Scrot

JWJones 05-07-2016 10:52 AM

If you use Linux Mint 17.3 (which desktop environment?) as your profile says, I believe you go to the menu, choose "Accessories," and choose "Take screenshot."

You can also configure whatever key-combo (or just PrtScrn) to do this under "Keyboard" in settings.

cwizardone 05-07-2016 11:12 AM

Quote:

Originally Posted by DavidMcCann (Post 5541841)
...KSnapshot is for KDE (and discontinued)....

In KDE-5 (or whatever it is called) KSnapshot was replaced with Spectacle.

Quote:

Spectacle replaced KSnapshot with the release of KDE Applications 15.12 in December 2015.

With new features and a completely new UI, Spectacle makes taking screenshots as easy and unobtrusive as it can ever be. In addition to what you could do with KSnapshot, with Spectacle you can now take composite screenshots of pop-up menus along with their parent windows, or take screenshots of the entire screen (or the currently active window) without even starting Spectacle, simply by using the keyboard shortcuts ⇧ Shift+PrintScreen and Meta+PrintScreen respectively.

Spectacle was optimized to start fast, to absolutely minimize the time lag between when you start the application and when the image is captured.
https://en.wikipedia.org/wiki/KSnapshot

clawinus 05-07-2016 11:47 AM

Thanks dwnthk, keefaz, cwizardone and DaidMcCann for the immediate and informative responses.

The print screen button is active, my attempts had been saved in the Pictures folder. KSnapshot works as well,
also Scrot and another program called Shutter that I found through Wikipedia.

Yes, I should have indicated my environment which is Linux Mint 17.3 with Cinnamon

Shadow_7 05-07-2016 02:10 PM

There's also scrot. Which you can assign to a hotkey, or run it from the CLI.

$ sleep 5 && scrot

Plus various other ways in gimp and other tools.


All times are GMT -5. The time now is 07:35 PM.