emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Renzo Been :-)" <swangdoodles@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Images and html-export via data: ?
Date: Sun, 8 Feb 2009 14:34:09 +0000 (UTC)	[thread overview]
Message-ID: <loom.20090208T135924-527@post.gmane.org> (raw)
In-Reply-To: 5271219C-E7EA-48F9-8117-96F4E800C253@uva.nl

Carsten Dominik <dominik <at> science.uva.nl> writes:

> Seems to me that this could be a nice add-on package, which would  
> encode and insert such images.
> - Carsten

Yes, making it an add-on package would be the best way. Then everyone can chose
to use these image commands or not...

If there is someone on the list who could create such a package... That would be

Or I could try and write it myself. But I must admit that my knowledge of
writing elisp code is pretty limited...

One way to do this would be a mechanism equal to "Include files".


#+INCLUDE: "~/.emacs" src emacs-lisp

(from the org manual)

Would turn into:

#+INCLUDEPIC: "~/foo.jpg" jpg

The extra parameter would be needed to determine the file-type of the image. And
possibly there could be more extra parameters for things like: image alinement,
and including a caption. 

And during html export the above would then turn into:

<p><img src="data:image/jpg;base64,
base 64 encoded text of ~/foo.jpg

To me this seems a nice way to implement this command. But I really would not
know how to start writing this up into an add-on package...


      reply	other threads:[~2009-02-08 14:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-07 17:49 Images and html-export via data: ? Renzo Been :-)
2009-02-07 18:55 ` Sebastian Rose
2009-02-07 19:44 ` Manish
2009-02-07 20:31   ` Renzo Been :-)
2009-02-08 13:22 ` Carsten Dominik
2009-02-08 14:34   ` Renzo Been :-) [this message]

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:

  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=loom.20090208T135924-527@post.gmane.org \
    --to=swangdoodles@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).