How To Capture High Resolution Screen Shots In Linux

Have you ever needed to capture a screen shot of something in Linux and 72dpi was not high enough resolution. I recently found myself in this situation trying to capture some images of the great screen savers that come with most Linux distributions. The way you do this is easier than it first appears.

First, you must have an ssh server running. This is running by default on most of the newer Linux variants. You must also have ImageMagick installed and working. ImageMagick is great for manipulating images from the command line. There are binary packages for ImageMagick for most of the major distributions or you can build it yourself by getting the source code.

Step 1: Connect from a separate PC via ssh.

You could also log in to a second tty session (i.e. CTRL+ALT+2), but I am trying to capture a screen saver so I don't want to actually press any other keys once the screen saver is running or I will exit back to the desktop.

ssh username@servername

Step 2: Use the import command to capture your screenshot.

You need to make sure you specify the main display and the root window to capture the main screen. Also, the density option will allow you to capture at a higher dpi than normal.

import -display :0 -window root -density 600 screen.png


That's it! Enjoy your hi-res screen shots.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

imagemagick rules

been messing with imagemagick for a while now. Still amazed at all it can do. And you showed me a new trick. Nice.

So is imagemagick the behind the scenes of the gimp? Figguring so.

We use the import function a bunch at work for our internal wiki, comes in pretty handy.

Snapshot

If you use Snapshot just give a delay of 10-15secs. start your screen saver and it will take a pic of it ;)

anewcomb's picture

Thanks for the tip. Do you

Thanks for the tip. Do you have a url for Snapshot?

Aaron

Sleep

Put sleep command before import and you get a delay before you start a screen saver.


sleep 300 ; import -display :0 -window root -density 600 screen.png

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Copy the characters (respecting upper/lower case) from the image.

Call Us NOW!

Leave us a message and we will put it on the show!

Poll

Feeds

mpeg4 (iPod Compatible)
theora
xvid (Nokia Compatible)
mp3
ogg
iTunes Video
iTunes Audio

Donate

We value your support for Open Source!



Donate $10 or more and get your name in the credits!
Donate $50 or more and get your picture in the credits plus become an executive sponsor!!

Syndicate

Syndicate content