Enter your email address:

Delivered by FeedBurner

Taking Screenshots with Linux


StumbleUpon Toolbar

Find here how to take Screen Shots with Linux, could help you specially if you like to write Linux tutorials

If you like to write tutorial, or need a screen shot for any homework or job, the Linux Operating System gives you some very good resources to have this task done.

The Gimp

With Gimp you have to go to:

File->Acquire->Screeshot

and you will get a dialog box like this

Take Screen Shot on Linux with Gimp

As you see you have three options:

  1. Take Screenshot of a singe window: This will make your cursor be a thick cross, and you can select the window to take the screenshot of
  2. Take a Screenshot of the entire screen: This will take a screenshot of the entire screen
  3. Select a region to grab: This will make the cursor into a cross and you can grab a region of the screen to take a screenshot of it

Gnome

If you use Gnome you can just press PrtSC (Print Screen) key, this will take a screen shot of the whole screen, you can only choose where to save the screenshot, the size will be the size of you screen, I mean the same resolution.

Imagemagick

First install the software:

Fedora / Centos

yum install imagemagick

Debian / Ubuntu

sudo apt-get install imagemagick

Then you can use one of its tools, which is import

Take a screenshot of the full screen

import -window root screenshot.jpg

If you need some time to arrange the screen for your screenshot.

Updated, thanks to a friend of the blog

import -pause 3 -window root screenshot.jpg

This will give you 3 seconds before the screen shot is taken.

Take a screenshot of just a region of the screen

import screenshot.jpg

This will make your cursor looks like a cross and you can select the region of the screen to take the screenshot, here you can also use the sleep command.

Vmware

If you are using VMware you can select

vm->capture screen

And you will see a dialog box like this:

Take Screen Shot on Linux with vmware

And you will take a screenshot of the whole screen of the vmware screen.

Two more tips

I will show you now two more very useful when managing screenshots.

Crop images with gimp

Crop images with gimp

Select the circled tool, and use it to select the region of the image you want to crop.

Changing the size of the image, and creating thumbnails

If you need to resize your images, or create thumbnails for them you can use imagemagick once again:

convert -resize 150x imputfile.jpg outputfile.jpg

This will resize your image to 640 to anything the imputfile.jpg and save it as outputfile.jpg, it is always better to only specify one of the sizes to maintain the proportion of the image.

If you want to convert a lot of images at the same time, you can use a trick I learned from my friend of bashcurescancer

find . -type f -name '*.png' -exec convert -resize 640x {} {} \;

This way you will find files ending in .png and resize them to 640x size, the output files will be named the same as the input ones, take care with this if you do not want to loose the original files.

Trackback URL for this post:

http://www.go2linux.org/trackback/359
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

Although I'm a Gnome user, I

Although I'm a Gnome user, I tend to prefer using KSnapshot, as this gives me the ability to grab a portion of the screen. Just as the Gimp tool, but with a lgihter footprint tool. Actually, I miss the region grab in the Gnome print screen utility.

In the line sleep 3; import

In the line
sleep 3; import -window root screenshot.jpg
the sleep 3 is not necessary.
Import got this function out of the box:
import -pause 3 -window root screenshot.jpg

Hey! thanks! what I like

Hey! thanks! what I like about blogging is that I learn more than I teach :)

Guillermo Garron

Thanks. Really helpful

Thanks. Really helpful

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting