Emacs integration for taking screen-shots and uploading images to http://imagebin.org. Currently under construction. Sort of maintained by IzaakBeekman.
I am hoping to turn this into a package and make some substantial improvements, but right now I have very little time and knowledge of ELisp. I am also hoping that this code will be useful to the rest of the community. It seems to me that it could be particularly useful for collaborative debugging of Emacs, emacs packages, etc.
Right now this code is in my .emacs file. Two functions are defined, one for taking a screen shot with xwd and saving it as a .png, and the other for calling the first function and pasting the screen shot to http://imagebin.org with curl. This is then bound to some key.
Below is a list of improvements I would like to make/ I would like to have help making/ if you’re impatient and want to make them yourself you should. This list is ranked in order of my perception of the improvement-of-functionality/time-investment ratio which could be incorrect.
;;;;;;;;;;;;;;;;;;;; ;; Screen capture ;; ;;;;;;;;;;;;;;;;;;;; (defun screen-cap () (interactive) (shell-command "xwd -root | xwdtopnm | pnmtopng > ~/EmacsScreenshot.png") ) (defun screen-paste () (interactive) (screen-cap) (shell-command "curl 'http://imagebin.org/index.php' -F 'nickname=ibeekman' -F \"image=@$HOME/EmacsScreenshot.png;type=image/png\" -F 'disclaimer_agree=Y' -F 'Submit=Submit' -F 'mode=add'") ) (global-set-key [C-kp-enter] 'screen-paste)
Improvements and suggestions are encouraged!
I have some code that does screenshots, and surrounds them with web pages, while stepping through a sequence of emacs commands, at versor-demo.el on SourceForge. You could try extracting relevant bits of that — try the function versor-take-screenshot.