Has anyone ever tried embedding images directly in the HTML when exporting an org-mode file, similar to what the “SingleFile” Chrome extension does (https://github.com/gildas-lormeau/SingleFile)?
This would be extremely handy, allowing me to periodically archive the page in Git, including changes to images. It also makes sharing a document dead-simple.
I’ve seen a few similar things, e.g.:
http://thread.gmane.org/gmane.emacs.orgmode/55155
http://thread.gmane.org/gmane.emacs.orgmode/11180
But what I’m hoping for is to create the image in the usual way, with a [[file:foo.png]] tag (usually this is the result of plotting something in R), and the Base64 encoding happens to all images during *export*. The above approaches
create the Base64-encoded <img> tag right in the org-mode buffer, which limits the other types of exports one can do (e.g. normal HTML, LaTeX, etc.).
--
Ken Williams, Senior Research Scientist
WindLogics
http://windlogics.com