From mboxrd@z Thu Jan 1 00:00:00 1970 From: Piter_ Subject: Re: insert picture feature request. Date: Tue, 3 May 2011 01:34:39 +0200 Message-ID: References: <20110502132832.GD18788@x201> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH2dW-0001LL-5w for emacs-orgmode@gnu.org; Mon, 02 May 2011 19:34:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QH2dU-0002JR-Tw for emacs-orgmode@gnu.org; Mon, 02 May 2011 19:34:42 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:51988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH2dU-0002JN-ON for emacs-orgmode@gnu.org; Mon, 02 May 2011 19:34:40 -0400 Received: by wyf19 with SMTP id 19so5610389wyf.0 for ; Mon, 02 May 2011 16:34:39 -0700 (PDT) In-Reply-To: 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: brian powell Cc: emacs-orgmode@gnu.org Thanks. It is what I need. Than On Mon, May 2, 2011 at 4:23 PM, brian powell wro= te: > * This is what I use (thanks to whomever wrote the original): > > (defun org-screenshot () > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "Take a screenshot in= to a time stamped > unique-named file in the same directory as the org-buffer and insert a > link to this file." > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (interactive) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (setq filename > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (concat > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(make-= temp-name > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (conc= at (buffer-file-name) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 "_" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 (format-time-string > "%Y%m%d_%H%M%S_")) ) ".png")) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (call-process "import= " nil nil nil filename) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (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 > >