[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] insert picture feature request.
From: |
Piter_ |
Subject: |
Re: [O] insert picture feature request. |
Date: |
Tue, 3 May 2011 01:34:39 +0200 |
Thanks.
It is what I need.
Than
On Mon, May 2, 2011 at 4:23 PM, brian powell <address@hidden> wrote:
> * 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
>
>
- [O] insert picture feature request., Piter_, 2011/05/02
- Re: [O] insert picture feature request., Russell Adams, 2011/05/02
- Re: [O] insert picture feature request., brian powell, 2011/05/02
- Re: [O] insert picture feature request.,
Piter_ <=
- Re: [O] insert picture feature request., Mark S., 2011/05/03
- Re: [O] insert picture feature request., Russell Adams, 2011/05/04
- Re: [O] insert picture feature request., Mark S., 2011/05/07
- Re: [O] insert picture feature request., Aankhen, 2011/05/08
- Re: [O] insert picture feature request., Mark S., 2011/05/08
- Re: [O] insert picture feature request., Mark S., 2011/05/08
- Re: [O] insert picture feature request., Nick Dokos, 2011/05/08