I want to know the use of import gravity and import antigravity. Is there any differences between these two commands?

man import shows:

the import program is a member of the ImageMagick(1) suite of tools. Use it to capture some or all of an X server screen and save the image to a file.

Did the import gravity and import antigravity commands capture the x server screen? If yes, then in what basis? And where is the captured image stored?


import gravity lets you click on a window and saves a screenshot of that window in a PostScript file named gravity in your current folder.

import antigravity does the same thing with a file named antigravity

  • 1
    Just about to answer that... more here. You need to run import gravity.ps to make it work better, then you should be able to just open the file with a click – Wilf Dec 2 '13 at 13:32
  • Unless you are intending to print your screenshot, I would recommend import gravity.png. PNG is a lossless compressed format for bitmap images. – joeytwiddle Jan 7 '16 at 6:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.