emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Embedding images as data: URIs in the HTML exporter (was:


From: David Maus
Subject: Re: [Orgmode] Embedding images as data: URIs in the HTML exporter (was: MathJax is now the default for HTML math)
Date: Sun, 26 Sep 2010 20:51:29 +0200
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Jan Böcker wrote:
>On 09/03/2010 05:07 AM, address@hidden wrote:
>> How about doing the same data: URI embedding for images in the HTML
>> exporter?  It should be possible to implement it entirely inside
>> Emacs.  It would have to be optional, of course.
>> 
>> Derek
>> 

>This is certainly possible, the following patch would do this to *every*
>image. Maybe someone who knows the HTML exporter code better than I do
>can make it configurable and submit a patch.

>Bonus points for an extra option which only embeds images smaller than
>32 KB to keep it compatible with Internet Explorer.

The main problem I see here is, that it is not very well supported.
Especially IE below 8 does not support it at all and IE8 seems to
support data URIs in CSS style sheets, only.
 
Quote from https://developer.mozilla.org/en/data_URIs (Common
problems):

"The data scheme is supported by Opera 7.20 and above, as well as
Safari and Konqueror. Internet Explorer 7 and below, however, do not
currently support it. Internet Explorer 8 and above only supports data
URIs for images in CSS."

Moreover this technique is somewhat problematic because it defeats
some caching mechanism, and will enlarge the resulting page -- not
very kind for people with small bandwith and/or paying by traffic.

I think something supporting this could go to hacks or contrib with a
big red warning about the consequences and a careful discussion of
when to use this and when best not to use it.

Best,

 -- David

PS: There is
http://www-archive.mozilla.org/quality/networking/testing/datatests.html
that lets you test your browser for the support of content included in
data URIs.

-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... address@hidden
Email..... address@hidden

Attachment: pgpAC6LCEdYYY.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]