This tutorial works very well on older versions of Fedora 15.
It is necessary that you have ImageMagick installed.
1 2 | $ import --help Version: ImageMagick 6.6.5-10 2011-02-08 ... |
To create a screen capture using the following command:
1 | $ import -window root image.jpg |
Use the following command for a png image format:
1 | $ import -window root image.png |
Command import has options for this purpose without using the mouse.
1 | $ import -window root -crop 200x200+0+0 image.jpg |
If you want to use a mouse than import also has the option to grab the coordinates by using the mouse.
1 | $ import image.jpg |
You can also use a delay for the catch screen.
1 | $ import -pause 10 -window root image.jpg |
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.
1 2 3 | ${DISPLAY:=:0} export DISPLAY |
These are the basics for using the import command.
Using the argument –help you see its complexity.