emacs-orgmode
[Top][All Lists]
Advanced

[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
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]