Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a command-line switch to launch GIMP and open the 'Acquire screenshot' dialog directly, rather than going through the menu?

share|improve this question
add comment

2 Answers

If it is a command line screenshot you are interested in
ImageMagick has a very good import command that can be used for screen capture.

share|improve this answer
    
Thanks for the answer. I'd like to open it directly in GIMP since then I can easily crop/adjust it. –  Robert Munteanu Aug 16 '09 at 20:17
add comment
xwd >/tmp/snap ;  gimp /tmp/snap

This uses the xwd utility to let you grab an image of a window then opens it immediately in Gimp for editing, acting as if it has been snapped directly into Gimp. Read the man file for xwd for various options you can add to this line to alter its behavior to what you prefer. If you don't have xwd (an ancient and pretty common screengrab utility) then use scrot or ImageMagick's "import" to grab the screenshot to a file, and open it in Gimp the same way.

You could make a small script with this line and invoke it with a hotkey (e.g. PrintScreen key) for ease of use. There are issues with using the PrintScreen key though. Read http://www.murga-linux.com/puppy/viewtopic.php?p=754063#754063 for background info on why PrintScreen key doesn't work properly in many distros and how to very easily fix it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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