Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

how to store a screenshot as a file?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
andrei186
Posts: 115
Joined: 2014-10-23 10:54

how to store a screenshot as a file?

#1 Post by andrei186 »

One can take a screenshot - i.e. to store it in the memory by pressing PrtScr.
But I failed to find how to write it into a graphic file? In particular in Xfce which does not have a graphic file editor

User avatar
aicardi
Posts: 388
Joined: 2009-11-18 01:30
Location: Chicago

Re: how to store a screenshot as a file?

#2 Post by aicardi »

xfce4-screenshooter comes to mind. Plugin for the xfce4 panel. If you don't use the panel you can run it from command line.
scrot. Command line screen capture utility.
Jessie/Xfce

andrei186
Posts: 115
Joined: 2014-10-23 10:54

Re: how to store a screenshot as a file?

#3 Post by andrei186 »

aicardi wrote:xfce4-screenshooter comes to mind. Plugin for the xfce4 panel. If you don't use the panel you can run it from command line.
scrot. Command line screen capture utility.
Thank you. On my Debian scrot returns "command not found"
Googled it and got an impression that scrot too only takes screen into memory. For the list of parameters (http://en.wikipedia.org/wiki/Scrot) does not include the name of the target file which is necessary for storage

User avatar
mardybear
Posts: 994
Joined: 2014-01-19 03:30

Re: how to store a screenshot as a file?

#4 Post by mardybear »

andrei186 wrote:On my Debian scrot returns "command not found"
Then it's probably not installed:

Code: Select all

# apt-get install scrot
Scrot works very well and has many options. You can take an entire screenshot, specify a window only, set a countdown delay. Read the manual page:

Code: Select all

man scrot
Googled it and got an impression that scrot too only takes screen into memory.
On my system, a default scrot screenshot from CLI automatically produces a .png file in my /home/username folder.
800mhz, 512mb ram, dCore-jessie (Tiny Core with Debian Jessie packages) with BusyBox and Fluxbox.
Most don't have computer access, reuse or pay forward an old computer.

User avatar
aicardi
Posts: 388
Joined: 2009-11-18 01:30
Location: Chicago

Re: how to store a screenshot as a file?

#5 Post by aicardi »

You may have to install it.

Code: Select all

# apt-get install scrot

I have a small script that I use to name and save the screenshots.
Example:

Code: Select all

#!/bin/sh
#
#NAME: sshot.sh
#PURPOSE: screen capture using scrot w/5 sec delay. Screen saved in ~/screenshots

if [ -d  ~/screenshots ]; then
		scrot -d 5 '%Y-%m-%d-%H:%M_scrot.jpg' -e 'mv $f ~/screenshots/'
	else
		mkdir ~/screenshots
		scrot -d 5 '%Y-%m-%d-%H:%M_scrot.jpg' -e 'mv $f ~/screenshots/'
fi
Jessie/Xfce

andrei186
Posts: 115
Joined: 2014-10-23 10:54

Re: how to store a screenshot as a file?

#6 Post by andrei186 »

Thank you all, this works and this this just what I need

User avatar
alan stone
Posts: 269
Joined: 2011-10-22 14:08
Location: In my body.

Re: how to store a screenshot as a file?

#7 Post by alan stone »

Depending on your needs, a more feature-rich screenshot tool is Shutter.
Some additional information here.

User avatar
aicardi
Posts: 388
Joined: 2009-11-18 01:30
Location: Chicago

Re: how to store a screenshot as a file?

#8 Post by aicardi »

alan stone wrote:Depending on your needs, a more feature-rich screenshot tool is Shutter.
Some additional information here.
xfce4-screenshooter is pretty feature-rich as well. Less bloated.
scrot is extremely feature-rich as well as small. Command line only though.
Jessie/Xfce

followurdrmz
Posts: 11
Joined: 2013-11-01 05:17
Location: Hyderabad, India

Re: how to store a screenshot as a file?

#9 Post by followurdrmz »

@aicardi xfce4-screenshooter has a plugin too, xfce4-screenshooter-plugin. You can put that plugin on your panel and configure for your needs.

User avatar
alan stone
Posts: 269
Joined: 2011-10-22 14:08
Location: In my body.

Re: how to store a screenshot as a file?

#10 Post by alan stone »

"Package: xfce4-screenshooter-plugin
transitional dummy package for xfce4-screenshooter
Screenshooter is an utility for the Xfce Desktop Environment. The package has been renamed from xfce4-screenshooter-plugin to xfce4-screenshooter so this package is here to handle the transition.
You can safely remove it"
Source

User avatar
aicardi
Posts: 388
Joined: 2009-11-18 01:30
Location: Chicago

Re: how to store a screenshot as a file?

#11 Post by aicardi »

followurdrmz wrote:@aicardi xfce4-screenshooter has a plugin too, xfce4-screenshooter-plugin. You can put that plugin on your panel and configure for your needs.
Yes, I guess my point is that you don't have to use it from a panel-plugin. I don't use xfce4-panel. I just start it from command line.

Code: Select all

$ xfce4-screenshooter
What I don't like about xfce4-screenshooter is the file naming. I don't like spaces in file names.
Example:

Code: Select all

Screenshot - 04162015 - 10:23:36 AM.png
Personally, I prefer scrot.
Jessie/Xfce

User avatar
kiyop
Posts: 3983
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan
Been thanked: 3 times

Re: how to store a screenshot as a file?

#12 Post by kiyop »

I use openbox. I prefer:

Code: Select all

sleep 5;xwd -root|convert - capture.png;geeqie capture.png
Of course, you must install "geeqie".
I edit capture.png by "gimp".

Refer https://wiki.debian.org/ScreenShots

ADDED AT Sun Apr 19 16:49:17 JST 2015;

Sometimes, "convert" does not work.

Code: Select all

sleep 5;xwd -root > capture
"x11-apps" package is required for wheezy.
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/

Post Reply