How to use the import command to take screenshots?

This tutorial works very well on older versions of Fedora 15.

It is necessary that you have ImageMagick installed.

To create a screen capture using the following command:

Use the following command for a png image format:

Command import has options for this purpose without using the mouse.

If you want to use a mouse than import also has the option to grab the coordinates by using the mouse.

You can also use a delay for the catch screen.

Many users use this command for automated scripts.

As you know, running the script from cron it doesn’t have access to your DISPLAY environment variable.

It is necessary to set the display if it’s not already set.

These are the basics for using the import command.

Using the argument –help you see its complexity.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.