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.
That's it! Enjoy your hi-res screen shots.
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.






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 ;)
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