emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrgdev@googlemail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: inline images
Date: Wed, 01 Oct 2008 17:33:39 +0200	[thread overview]
Message-ID: <gpzllo9vos.fsf@development.richardriley.net> (raw)


I sometimes turn on inline images in my org file using code posted here.

,----
| ;; inline images in org files
| ;;iimage
| (require 'iimage)
| (setq iimage-mode-image-search-path (expand-file-name "~/"))
| ;;Match org file: links
| (add-to-list 'iimage-mode-image-regex-alist
|             (cons (concat "\\[\\[file:\\(~?" iimage-mode-image-filename-regex
|                           "\\)\\]")  1))
| (define-key org-mode-map [(control c) ?i] 'iimage-mode)
`----

It might be an idea to make it a setting as to whether the target image
is inlined too. e.g I have a lot of links of this type:

[[file:../images/gud.png][file:../images/guds.png]]

And would like to only see the small preview png file in this case and
not the large one.

Has anyone implemented something like this or has the code above already
been merged into org?

regards,

r.

             reply	other threads:[~2008-10-01 15:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01 15:33 Richard Riley [this message]
2008-10-02  0:47 ` inline images Lindsay Todd
2008-10-02 19:56   ` Felipe Csaszar
2008-10-03  3:34     ` Sebastian Rose
2008-10-03 16:51       ` Felipe Csaszar
2008-10-07  2:50         ` gregory mitchell
2011-01-07  8:06           ` Vladimir Alexiev
2011-01-07 16:31             ` [PATCH] org-display-inline-images to reduce image size Vladimir Alexiev
2011-01-10  8:31               ` Vladimir Alexiev
2011-02-07  8:33                 ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gpzllo9vos.fsf@development.richardriley.net \
    --to=rileyrgdev@googlemail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).