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



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to