Linux.com

Feature

How to choose the right screenshot program

By Bruce Byfield on October 24, 2006 (8:00:00 AM)

Share    Print    Comments   

Because a picture can illustrate a program better than words can, screenshots are a fundamental of development and documentation. GNU/Linux has no shortage of versatile screenshot programs, both on the desktop or command line, but none is perfect for every use. I recently tried several screenshot programs. Here's my advice on what works best among the available options.

Having once worked seven years as a technical writer, I have definite ideas of what I am looking for in a screenshot program. For me, a screenshot program must give me the option to choose:

  • The region of the screen to be captured: the entire desktop, a window, or a specified region
  • Whether window manager frames and mouse cursors are to be included
  • A delay, to enable you to set up the screenshot by closing or minimizing windows and setting the current window
  • Basic image-editing options, such as cropping and resizing

Armed with these requirements, I began searching both the desktop and the command line.

Desktop utilities

Since screenshots imply a graphical interface, many users might turn first to the utilities that come with their desktop. Most of these utilities provide only limited functionality. From GNOME, users can select Accessories -> Take Screenshot to capture the screen region, with only the option of where to save the screenshot. This basic functionality is also available by pressing the Print Screen key to capture the entire desktop, while Alt-PrintScreen captures the current window. Alternatively, you can use the gnome-panel-screenshot command, which has options to capture the current window or to add a delay. More promisingly, GNOME users can use the Desktop Record panel applet, which gives the choice of capturing the entire screen, a window, or a specified area, as well as the mouse cursor.

The most versatile utility for desktop captures is KDE's KSnapshot, which, in addition to the region, also offers a delay and the option to print and copy to clipboard, which is especially useful if you plan to use the screenshot immediately.

Another option available to any desktop user is to select File -> Acquire -> Screen Shot in the GIMP. This option allows shots of the full screen or a window, as well as a delay. The GIMP partly compensates for its lack of capture features with its complete set of editing tools, but the fact that its Screen Shot window closes after each time an image is taken quickly becomes an annoyance when you are taking a large number of shots.

For elusive images, such as the splash screen of a starting program, Istanbul can be an option. Designed to capture screencasts rather than a single snapshot of the screen, Istanbul outputs to Ogg Theora format. After recording a session, all you need to do is run the output file in Totem, then pause it to get the image you need. Istanbul sits in the Notification Area of the GNOME panel, from which you can choose options to select the particular area of the desktop to record, and whether to include the mouse cursor and any sounds as well. Istanbul also includes resizing options, although these are limited to full, half, and quarter size.

Command-line utilities

As often happens in GNU/Linux, the command line still offers a rich array of choices. If these utilities do not stay open by default, they can at least be quickly recalled by scrolling back in the command history. Most of them offer only a limited ability to edit the result -- although, surprisingly, they tend to offer more editing options than most of the desktop alternatives.

The venerable XWD is still installed in many distributions by default, but, despite offering a range of options, including whether to include the window manager frame of a window, it outputs to only .xwd format, and therefore requires the additional step of exporting to another format for Web and other uses.

By contrast, ImageMagick is a more versatile old-time command line tool. Through its import utility, ImageMagick not only supports export to more than 90 image formats, including common ones such as PNG, GIF and JPEG, but also gives users options to combine images, annotate, choose the compression level in formats where a choice is available, and crop and resize.

Another useful tool on the command line is Tom Gilbert's scrot. On his home page, Gilbert compares scrot to ImageMagick, but, if anything, it is even more versatile. In addition to a delay, and the ability to select the desktop region and include the window frame, scrot also includes a number of features that, in my experience, are unique to screenshot programs, including a countdown for the delay, the selection of image quality, and the on-the-fly creation of a thumbnail based on a percentage of the size of the output image. In addition to these parameters, the name of the output image can take special strings to control its size and format. Scrot even gets around the problem of not having editing tools available by including a parameter that opens any program specified after the shot is taken.

A more specialist tool is Byzanz, which is designed to record animated GIFs. The program offers a delay before recording, and the setting of the exact coordinates on the X and Y axes of the desktop to include in the recording. In practice, setting the region for Byzanz requires considerable trial and error for new users, and even experienced ones are likely to have trouble using it with any precision.

For screencasts from the command line, Xvidcap is an option, although the official site does not seem to be updated since 2004. You can use Xvidcap to capture single frames or to create a video, with the option of including the mouse cursor and audio. The program is also available in a graphical version called Gvidcap.

Choosing a screenshot program

This list is not a complete survey of screen capture tools -- only of those most readily available. It does not include, for example, obsolete programs such as GNOME's Electric Eyes. Nor does it include fbgrab, which is useful for capturing virtual consoles, but requires enabling framebuffering in the Linux kernel, a task that many users may be reluctant to undertake. Similarly, it ignores snapscreenshot, which appears not to have been updated for four years, and which I was unable to compile under recent kernels. Since none of these offer any advantage to general users, they are omitted.

Comparing the tools that are listed with my wish list, I see none that include all the features I would want. On the desktop, KSnapshot comes closest, although it still requires opening a separate graphics editor for tweaking the results. Conversely, the GIMP has the advantage of opening the result in a complete graphics editor, but its limited options increase the need for editing in the first place.

The most versatile of the programs is scrot. Despite the natural disadvantage of using a command-line tool for graphics, scrot does the best job of allowing you to set up a screenshot exactly the way you want it. The main drawback to scrot is that, until you learn the options, setting up shots can be time-consuming; the program cries out for a graphical interface from which options can be quickly selected.

For screencasts, I have no real favorite. Although ease of use puts Istanbul ahead of Xvidcap, the program is sometimes so slow to respond that users might think it broken.

As far as I am concerned, the definitive open source screen capture program has yet to be written. Those mentioned here are generally adequate, but none are as fully-featured as commercial or shareware programs on Windows such as HyperSnap or SnagIt.

Bruce Byfield is a course designer and instructor, and a computer journalist who writes regularly for NewsForge, Linux.com and IT Manager's Journal.

Bruce Byfield is a computer journalist who writes regularly for Linux.com.

Share    Print    Comments   

Comments

on How to choose the right screenshot program

Note: Comments are owned by the poster. We are not responsible for their content.

Great Suggestions

Posted by: Anonymous Coward on October 20, 2006 03:20 AM
I've been using the Gimp for this task, the slow load time is what I found to be a drawbak if the Gimp wasn't going to be used during that session.

The easy way around the window closing each time is to tear the menu off, while this doesn't keep a dialog open, it does provide easy access to it if there are more screen shots to take.

I'm looking at giving scrot a try as I write this, Synaptic is loading it in.

#

Screenshot is important

Posted by: Anonymous Coward on October 20, 2006 07:00 AM
Screenshots are very important.
If I want to try out a new software, but there are no screenshots, then I will hesitate to download it, since I cant get any impression of what to expect and I most likely will not download it.

#

xvidcap still alive

Posted by: Anonymous Coward on October 20, 2006 11:49 AM
If you go to the download section <a href="http://sourceforge.net/project/showfiles.php?group_id=81535" title="sourceforge.net">http://sourceforge.net/project/showfiles.php?grou<nobr>p<wbr></nobr> _id=81535</a sourceforge.net> you will see that there is a new version being worked on. There is a release canidate available to download. It works pretty good and is for the most part stable, IMO.

#

Compiz/Beryl Screenshot plugin

Posted by: Anonymous Coward on October 20, 2006 11:52 AM
There is a screenshot plugin for Compiz and Beryl that allows one to select a rectanguler region of their desktop to make a snapshot of. There is also a video capture plugin being worked on for Beryl.

#

Print screen button

Posted by: Anonymous Coward on October 20, 2006 08:26 PM
You should be able to make a screedump of the whole screen using the "print-screen" button.

And making a screendump of only the active application, using alt+printscreen.

#

it doesn't work

Posted by: Anonymous Coward on October 24, 2006 02:21 AM
so maybe you could give a couple of pointers on how to make it work?

#

Re:it doesn't work

Posted by: Administrator on October 25, 2006 01:00 PM
Well....first you need to install windoze...

#

What about "Wink" and "ImageMagick"

Posted by: Anonymous Coward on October 24, 2006 08:44 PM
A reasonable article but missed ImageMagick's import command, which has the huge advantage of allowing drop-down menus to be captured.

Also, Wink (freeware from <a href="http://www.debugmode.com/wink/" title="debugmode.com">http://www.debugmode.com/wink/</a debugmode.com>) allows you to create screencasts in Macromedia Flash, Standalone EXE, PDF, PostScript, HTML or a variety of image formats.

Cheers,

#

Re:What about "Wink" and "ImageMagick"

Posted by: Anonymous Coward on October 25, 2006 08:03 AM
"ImageMagick's import command, which has the huge advantage of allowing drop-down menus to be captured."

KDE users might as well stick with KSnapshot- it also captures drop-down menus. And the whole screen, or the active windows or a random area that you draw yourself.

#

Shutterbug

Posted by: Anonymous Coward on October 24, 2006 08:50 PM
Try shutterbug. You can download it from fox-toolkit.org.

#

Gkrellm for snapshots

Posted by: Anonymous Coward on October 25, 2006 12:25 AM
gKrellm-shoot uses "xscreensaver-command -lock" to take pictures and allows the shot to be automatically opened in the program of one's choice (I prefer Kuickshow)

Other defaulted options include:

      greyscale

      region or full screen

      location of file

      image format

      and a set delay
My only complaint would be that the only r.t. options are shoot and lock others must be changed in config.

#

menu captures

Posted by: Anonymous Coward on October 25, 2006 12:33 AM
I think that there wasn't enough mention
about how/what to capture the drop menu's
on the screen. One reader mentioned ImageMagic
Import. I've not used ImageMagic.

How can I capture the menus as well as the whole screen ?

#

GNOME supports drag and drop

Posted by: Anonymous Coward on October 25, 2006 12:37 AM
When using GNOME's bundled screen capture application, you don't need to copy the image to the clipboard or save it explicitle to disk. You can drag the preview thumbnail directly into another program that supports dropping of images, such as the GIMP, Gaim, or your mail composer.

#

xsnap

Posted by: Anonymous Coward on October 25, 2006 12:41 AM
<a href="ftp://ftp.ac-grenoble.fr/ge/Xutils/" title="ac-grenoble.fr">ftp://ftp.ac-grenoble.fr/ge/Xutils/</a ac-grenoble.fr>

covers all my needs for static snapshots. windowed/region, all relevant filetypes, command-line, no oddball dependencies.

Perfect!

#

I use xv

Posted by: Anonymous Coward on October 25, 2006 01:04 AM
xv still works like a charm 12 years later -

#

vnc2swf

Posted by: Anonymous Coward on October 25, 2006 04:33 AM
I've used this for animated screen captures:

"vnc2swf" and "pyvnc2swf"

<a href="http://www.unixuser.org/~euske/vnc2swf/" title="unixuser.org">http://www.unixuser.org/~euske/vnc2swf/</a unixuser.org>

I've only used the 'C' version but it works pretty well - you do have to play around with the settings a bit to get things just right.

#

Re:it doesn't work

Posted by: Anonymous Coward on October 25, 2006 05:18 PM
Well, you don't have to install windows for that.
If you use KDE, for example, ctrl-print gives you a screenshot - in the clipboard. More comfortable is this:
First, create a new file, say screenshot.sh which contains the simple line
xwd -root | convert xwd:- png:`date +"%Y-%m-%d_%H%M%S"`.png
make that file executable.
Then open kcontrol. There in 'regional Settings' you can define key-combinations. Create a new one that calls the above script.
Everytime you now press the 'print' button, you'll hear your PC beep twice and find a new file like 2006-10-25_112023.png in your home-directory.

#

Re:it doesn't work

Posted by: Anonymous Coward on October 26, 2006 01:58 AM
oh, snap!!!

Nice!

#

Re:Screenshot program for video

Posted by: Anonymous Coward on May 14, 2007 01:53 AM
try VLC Media Player, it's a Media Player, not a screenshot utility, but it will take screenshots of videos

#

hmm

Posted by: Administrator on October 26, 2006 09:02 AM
you mean print screen and gimp pasting wont work?

#

Screenshot program for video

Posted by: Administrator on March 16, 2007 10:47 PM
Can anyone suggest me a good screenshot program, that can capture from a mpeg file? I tried so many, but did not get it working!

#

Re: Screenshot program for video

Posted by: Anonymous [ip: 140.32.88.80] on July 25, 2007 12:24 AM
Linux desktop-video capture similar to Lotus ScreenCam or TechSmith Corp.'s Camtasia Studio on MS-Windows

http://linuxmafia.com/faq/Apps/desktop-video-capture.html

This is a very good list of Linux based video capture ways and tools.

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya