From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: HTML/images zipped? Date: Fri, 26 Jun 2015 10:30:58 -0400 Message-ID: References: <6sw6c7bng2haym.fsf@pfdstudio.com> <87si9ebn3b.fsf@newcastle.ac.uk> <6sw6c7381eh89p.fsf@pfdstudio.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8Uem-00084I-2s for emacs-orgmode@gnu.org; Fri, 26 Jun 2015 10:31:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8Uei-0000g9-TN for emacs-orgmode@gnu.org; Fri, 26 Jun 2015 10:31:04 -0400 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:33171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8Uei-0000fr-B5 for emacs-orgmode@gnu.org; Fri, 26 Jun 2015 10:31:00 -0400 Received: by qkhu186 with SMTP id u186so55955380qkh.0 for ; Fri, 26 Jun 2015 07:31:00 -0700 (PDT) In-reply-to: <6sw6c7381eh89p.fsf@pfdstudio.com> 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: Peter Davis Cc: Phillip Lord , emacs-orgmode@gnu.org That is a cool idea. Here is some code for data uris that worked on with org-mode earlier this summer. You could definitely hack a filter that embedded the image uri directly into the exported html. http://kitchingroup.cheme.cmu.edu/blog/2015/05/09/Another-approach-to-embedding-org-source-in-html/ Peter Davis writes: > phillip.lord@newcastle.ac.uk (Phillip Lord) writes: > >> data-uri's is probably what you want. There is no standard format for >> zipping multiple HTML files together, while including images (or video's >> or audio) directly into the HTML works reasonably well. >> >> I found a snippet to get ox-html to do this -- it would be a good >> feature to add properly though! > > Thanks, Phillip. That sounds like an interesting possibility. I've never > worked with data-uri's. Can you post or send that snippet? I don't seem > to be finding it on my initial searches. > > Thanks, > -pd -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu