From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Williams Subject: Base64 embedded images? Date: Sat, 27 Oct 2012 15:15:59 -0500 Message-ID: <21A5E1E970CD46459ECBE86D6CC4B28C679B728E@spexch01.WindLogics.local> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_21A5E1E970CD46459ECBE86D6CC4B28C679B728Espexch01WindLog_" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSCnd-00053V-7f for emacs-orgmode@gnu.org; Sat, 27 Oct 2012 16:16:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSCnb-0002id-6M for emacs-orgmode@gnu.org; Sat, 27 Oct 2012 16:16:05 -0400 Received: from shrimp.windlogics.com ([216.245.170.164]:24377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSCna-0002iZ-Ut for emacs-orgmode@gnu.org; Sat, 27 Oct 2012 16:16:03 -0400 Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --_000_21A5E1E970CD46459ECBE86D6CC4B28C679B728Espexch01WindLog_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Has anyone ever tried embedding images directly in the HTML when exporting = an org-mode file, similar to what the "SingleFile" Chrome extension does (h= ttps://github.com/gildas-lormeau/SingleFile)? This would be extremely hand= y, allowing me to periodically archive the page in Git, including changes t= o 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 [[f= ile: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 tag right in the org-mode buffer= , which limits the other types of exports one can do (e.g. normal HTML, LaT= eX, etc.). -- Ken Williams, Senior Research Scientist WindLogics http://windlogics.com ________________________________ CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the inte= nded recipient(s) and may contain confidential and privileged information. = Any unauthorized review, use, disclosure or distribution of any kind is str= ictly prohibited. If you are not the intended recipient, please contact the= sender via reply e-mail and destroy all copies of the original message. Th= ank you. --_000_21A5E1E970CD46459ECBE86D6CC4B28C679B728Espexch01WindLog_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Has anyone ever tried embedding images directly in t= he HTML when exporting an org-mode file, similar to what the “SingleF= ile” Chrome extension does (https://github.com/gildas-lormeau/SingleFile)?  This would be extremely handy, allowing me to periodically archive the pag= e in Git, including changes to images.  It also makes sharing a docume= nt 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, wh= ich limits the other types of exports one can do (e.g. normal HTML, LaTeX, = etc.).

 

--

Ken Williams, Senior Research Scientist

Wind<= /b>Logics

http://windlogics.com

 



CONFIDENTIALITY NOTICE: Th= is e-mail message is for the sole use of the intended recipient(s) and may = contain confidential and privileged information. Any unauthorized review, u= se, 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.
--_000_21A5E1E970CD46459ECBE86D6CC4B28C679B728Espexch01WindLog_--