[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: Images and html-export via data: ?
From: |
Renzo Been : - ) |
Subject: |
[Orgmode] Re: Images and html-export via data: ? |
Date: |
Sun, 8 Feb 2009 14:34:09 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
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
great!
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".
So:
#+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
"></p>
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...
Ciao,
Renzo