From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: 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 Message-ID: <87aan4ibim.wl%dmaus@ictsoc.de> References: <63B79D2B-9483-481F-B7AB-88BEA753D5C8@gmail.com> <4C66F076.10505@jboecker.de> <19584.26243.447375.125613@priss.frightenedpiglet.com> <4C8119DD.3030408@jboecker.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1748017364==" Return-path: Received: from [140.186.70.92] (port=54931 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzwK4-0006ql-Vs for emacs-orgmode@gnu.org; Sun, 26 Sep 2010 14:51:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OzwK2-00027X-Ta for emacs-orgmode@gnu.org; Sun, 26 Sep 2010 14:51:40 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:35440) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OzwK2-00027R-Mt for emacs-orgmode@gnu.org; Sun, 26 Sep 2010 14:51:38 -0400 In-Reply-To: <4C8119DD.3030408@jboecker.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jan =?UTF-8?B?QsO2Y2tlcg==?= Cc: emacs-orgmode List , Carsten Dominik --===============1748017364== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Sun_Sep_26_20:51:28_2010-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Sun_Sep_26_20:51:28_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Jan B=C3=B6cker wrote: >On 09/03/2010 05:07 AM, sand@blarg.net 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. >>=20 >> Derek >>=20 >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. =20 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. --=20 OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Sun_Sep_26_20:51:28_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkyfljAACgkQma24O1pEeOYXMAEA0lkXUY4qVV4xd4JvZbcUZTbG 27kZKwo3k5Q0E9mfGy0A/jmDLto2OHgQkxMD12PHZ2CSohGTMm4uIRvw1bY0tZMF =nT2S -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sun_Sep_26_20:51:28_2010-1-- --===============1748017364== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1748017364==--