You can also use the gnome-panel-screenshot
command in a terminal (of course, a different one), by dropping the --window
(or -w
) parameter, which will allow you to grab a window instead of the entire screen.
The command should look like:
gnome-panel-screenshot --window --delay=10
or
gnome-panel-screenshot -w -d 10
Both the --delay=10
and the -d 10
parameters will give you 10 seconds in order to choose the appropriate window of which you wish a screenshot. Change this value in order to adjust it to your needs.
If you wish a screenshot of the current terminal window simply drop the gnome-panel-screenshot -window
or gnome-panel-screenshot -w
without any other parameters, for the whole screen drop no parameters at all.
For a guided screenshot grabbing simply drop the gnome-panel-screenshot -i
command in a terminal which will produce this window:
BTW: You don't need to drop this last one in a terminal, simply hit the AltF2 keys and enter it in the "Run application" dialog window. After which you can choose whatever options that better fits your needs for screen-shooting.
Good luck!
Here a list of applications that you can use from terminal:
wkhtmltopdf is a command line utility that converts html to pdf using webkit rendering engine.
sudo apt-get install wkhtmltopdf
The wkhtmltoimage utility shall take the screenshot of a given url, and save it as a png image. It uses the webkit rendering engine.
Download :
http://code.google.com/p/wkhtmltopdf/downloads/list
Usage :
To use the wkthmltoimage utility simple run the command from terminal, giving the url and the name for the image file.
$ ./wkhtmltoimage-amd64 http://www.google.com google.png
It will create google.png in home directory with the screenshot of www.google.com
Other options :
wkhtmltoimage provides many options to customise the screenshot. Some examples are as follows :
Quality - Controls the quality/compression of the generation image. Default is 94
$ ./wkhtmltoimage-amd64 --quality 50 http://www.google.com google.png
Disable images
$ ./wkhtmltoimage-amd64 --no-images http://www.google.com google.png
Disable javascript
$ ./wkhtmltoimage-amd64 --disable-javascript http://www.google.com google.png
Crop the screenshot
$ ./wkhtmltoimage-amd64 --crop-h 300 --crop-w 300 --crop-x 0 --crop-y 0 http://www.google.com googl
Cutycapt is a utility to take the screenshot of a url, using the webkit rendering engine and save it to an image file.
Install
sudo apt-get install subversion libqt4-webkit libqt4-dev g++ cutycapt
Usage
To use cutycapt, simply run the command from the terminal, providing the url and the name for the output file.
$ cutycapt --url=http://www.google.com/ --out=google.png
It will create google.png file in home directory which would have the screenshot of www.google.com
khtml2png uses the konqueror rendering engine to create screenshots of web pages.
Download
http://khtml2png.sourceforge.net/index.php?page=download
Install
To install khtml2png, the program has to be compiled and build on the system.
sudo apt-get install kdelibs4-dev zlib1g-dev g++ cmake
Extract the khtml2png archive.
./configure
make
sudo checkinstall (this will create a deb file and install it , so that it can easily uninstalled later)
Usage
To use khtml2png run the program from commandline providing the url and other options.
$ khtml2png2 --width 800 --height 600 http://www.google.com/ google.png
This would create a google.png in home directory with the screenshot of www.google.com.
Pywebshot uses python bindings embedded mozilla ( http://www.mozilla.org/unix/gtk-embedding.html )
Install
sudo apt-get install python-gtkmozembed
Download pywebshot from https://github.com/coderholic/PyWebShot
Usage :
$ python pywebshot.py www.google.com -t 1024x768<br /><br />Loading www.google.com... saved as www.google.com.png
It should create a www.google.com.png in the directory which has the screenshot of size 1024 x 768.
Best Answer
Take the screenshot of your desktop
gnome-screenshot
was the default command-line tool on Ubuntu to take a screenshot.Delayed the screenshot action by 10 seconds,So that you can place the desired window on front within 10 seconds.The taken images are actually stored in
~/Pictures
folder.Upload the image to imgur.com
Add the below lines to the opened
.bashrc
file and then save it.Source the
.bashrc
file,so that the changes can take effect,The above script requires
curl
package to work.So install it by runningThen run the below command to upload the image stored in the
~/Pictures
folder to imgur.com,Get the link of uploaded image
Source