emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Williams <Ken.Williams@windlogics.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Base64 embedded images?
Date: Sat, 27 Oct 2012 15:15:59 -0500	[thread overview]
Message-ID: <21A5E1E970CD46459ECBE86D6CC4B28C679B728E@spexch01.WindLogics.local> (raw)

[-- Attachment #1: Type: text/plain, Size: 1399 bytes --]

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


________________________________
CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.

[-- Attachment #2: Type: text/html, Size: 3914 bytes --]

                 reply	other threads:[~2012-10-27 20:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=21A5E1E970CD46459ECBE86D6CC4B28C679B728E@spexch01.WindLogics.local \
    --to=ken.williams@windlogics.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).