From mboxrd@z Thu Jan 1 00:00:00 1970 From: brian powell Subject: Re: insert picture feature request. Date: Mon, 2 May 2011 10:23:12 -0400 Message-ID: References: <20110502132832.GD18788@x201> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGu1r-0005qH-7n for emacs-orgmode@gnu.org; Mon, 02 May 2011 10:23:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGu1q-00011Q-1B for emacs-orgmode@gnu.org; Mon, 02 May 2011 10:23:15 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:38335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGu1p-00011E-Ru for emacs-orgmode@gnu.org; Mon, 02 May 2011 10:23:13 -0400 Received: by wyf19 with SMTP id 19so5216028wyf.0 for ; Mon, 02 May 2011 07:23:12 -0700 (PDT) In-Reply-To: <20110502132832.GD18788@x201> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org * This is what I use (thanks to whomever wrote the original): (defun org-screenshot () "Take a screenshot into a time stamped unique-named file in the same directory as the org-buffer and insert a link to this file." (interactive) (setq filename (concat (make-temp-name (concat (buffer-file-name) "_" (format-time-string "%Y%m%d_%H%M%S_")) ) ".png")) (call-process "import" nil nil nil filename) (insert (concat "[[" filename "]]"))) ** Works great for me, puts a timestamp on it and the filename. ** Also, notice the ".png": *** The link above suggests ".jpg" (as the default)--which is great for most things; except, JPG is a lossy compression format, but it does load faster. **** http://www.turnkeylinux.org/blog/png-vs-jpg