emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <dmaus@ictsoc.de>
To: "Jan Böcker" <jan.boecker@jboecker.de>
Cc: emacs-orgmode List <emacs-orgmode@gnu.org>,
	Carsten Dominik <carsten.dominik@gmail.com>
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	[thread overview]
Message-ID: <87aan4ibim.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <4C8119DD.3030408@jboecker.de>


[-- Attachment #1.1: Type: text/plain, Size: 1793 bytes --]

Jan Böcker 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.
>> 
>> 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.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

  reply	other threads:[~2010-09-26 18:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-14  6:09 MathJax is now the default for HTML math Carsten Dominik
2010-08-14 19:37 ` Jan Böcker
2010-08-14 20:39   ` Detlef Steuer
2010-08-14 20:59   ` Carsten Dominik
2010-08-14 22:16     ` Jan Böcker
2010-08-15  7:25       ` Carsten Dominik
2010-08-15 13:24       ` Jan Böcker
2010-08-16  8:59         ` Carsten Dominik
2010-08-16 10:05           ` Detlef Steuer
2010-08-16 17:55             ` Bastien
2010-08-16 10:09           ` Jan Böcker
2010-08-16 10:33             ` Carsten Dominik
2010-08-17 10:44               ` Jan Böcker
2010-08-17 11:01                 ` Carsten Dominik
2010-08-17 15:17                   ` Jan Böcker
2010-08-20 16:14                     ` Carsten Dominik
2010-09-03  3:07   ` sand
2010-09-03 15:53     ` Embedding images as data: URIs in the HTML exporter (was: MathJax is now the default for HTML math) Jan Böcker
2010-09-26 18:51       ` David Maus [this message]
2010-08-16 17:50 ` MathJax is now the default for HTML math Bastien

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=87aan4ibim.wl%dmaus@ictsoc.de \
    --to=dmaus@ictsoc.de \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jan.boecker@jboecker.de \
    /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).