Taking a screenshot of your desktop is always not a difficult task. Almost all linux distro comes with key binding on print screen button on your keyboard. For the case of gnome when you hit the print screen button, gnome will load up gnome-panel-screenshot (gnome-screenshot), display a small screen preview and ask for a filename to save.
That is convenience, it does the simply way of taking a snapshot of “entire screen”. And it also allow you to set the delay.
The command line above will delay for 5 seconds before taking the real screenshot.
When I want take a screenshot of an application, let say gaim. I ll do gnome-screenshot first and then load up gimp to cut the portion I want out. No! I don’t do that anymore after I discover imagemagick’s
import allows you to take a snapshot on anything in the X. Not limit to entire screen, but it is flexible enough for you to specified your range on any portion of your screen.
Let say, I want to take a snapshot of gaim, I will run this:
When I run this, my mouse cursor turns into a cross. With that cross, i can click and drag my mouse to select the portion of the screen I wanted to snapshot, or simply just click on the gaim application itself.
In case you want to import entire screen, you can specified the root window
import -window root screenshot.png
With help of zenity, you can even create a simple dialog to ask for a filename to save.
timestamp=`date +%d%m%y_%H%M%S`; filename=`zenity --entry --title "Screenshot Filename" \ --text "Enter the filename for screenshot." \ --entry-text "screenshot_$timestamp.png"`; \ import $filename;
There are more ways to do screenshot in Ubuntu Linux, check it out How to Take a Screenshot in Linux (Ubuntu).
[tags] graphicsmagick, imagemagick, linux command, howto [/tags]