emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Images and html-export via data: ?
@ 2009-02-07 17:49 Renzo Been :-)
  2009-02-07 18:55 ` Sebastian Rose
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Renzo Been :-) @ 2009-02-07 17:49 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

It's been a while since I posted anything on
this list. I've just been using org-mode
happily for quite a while now, and am quite
contend with the way it's working for me now...

I do have one idea that I think might be useful.

Images (and small files) can be included inside
html files in the following way.

src="data:..."

The image needs to be base64 encoded.

Would there be an easy way to create an
org-command to include an image into the org
file in this manner?

Off-course their is a disadvantage here: images
included like this could only be exported to
html (not LaTeX). And the images must be quite
small in size, or the exporter might
fail. Another problem is that not all browsers
can display images included in this way...

I'll be glad to here any comments about this idea.

Ciao,
Renzo

Below is an example of how I'm using this
feature now:

-----

#
* Picture
#+BEGIN_HTML
<p><img src="data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXRFWHRYLUluZGV4
ADHDxKz0AAAG2klEQVRYhe2XWWyU5xWGn9lnPF5mPIvHC96wx5iw2YYBG1kkBAhL
UEvVxShUVBFNVQFq1RSlVdIkTdWoF1UbSkJCCpVSATEiMShbm8QFBwIDGBsbx2C8
DYuNPTP2ePbtn5m/F1FQm+BxArd5L//v6JznO+fV+fTDt/pW96E9r+wRAY6+dUQc
Gu4XO7s6xG+aQ3I/xd0uJ+XlpQSCETQqFf6An4qKCtQqFWvWrPtaueXTHdjtZ8RY
PAZAIplgaPAWXZ/1EA5FeOPAPsmYM0pH51VOne5ElaFBKZdSWWlFkzGK0WDknXeP
izdu3mLn9p1pQdIevrrvFbGwoJBrAwOcPNmO3xfG5wsQT8QIBX2UzTajUEhxDE+g
ydCQn5ePe3KExTU1lBQXMXduNcvql5EUkpSWlt+11oxt2r17t3jq03Yu9/ZitZq5
1jdMfp4RxBharRptlppJj5+iIjMnTvSh0WYCsGHdaupqF+D3+b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5bDB88R92fxbst51Jpszp6boKxkIY2NS2fM+bUB
zr3fIi6aVcDGhnpe3/uSGBES3LzpwXM9ztOP72Dbps3cvhHl1OkOqqsqyC8wkUyk
aO+4mHYPTGvC/9UT2x4X1fEIwpQXn+Ci3GIBYLbZxEu/2kWmRgq5eqqr5tDd209X
90WQhNFlSfnJ1m33N4Ltv3hWvNTTSygQB6C3r59CnZ7l8+bx8jNPIVeKJJHj8/o5
2nIMrTaDVDKC2+mm/eKlGS83LUBnV4f46oFm8dLlDoR4kDH3GGEhjlabgVap4IWd
O+7ECskYJ86exx8KI5PFWbSgDOf4KJFIjOYjh9KOYFqAZFJk2HELr8dNqdkMwOTE
JOWlpYQiYbS6bMYnJgGIiSk+sdtpXFGP0aTDZDEjU+qJxlJpX8K0AEvqFktiMYFo
1M/mR9djMRoAUKk1CEKUHF02RpOBQDDIgGOY4XEn3d19pFIqPvz3WTIzcpHKZrZY
Wg9MeTxYDEVY9J8Xz8zORKVQEo+JeDxTCHEBhUpNZkYO+dk5WApm4fKEydEXkl9Q
grW8io8++te9jQCgrsZKabGFeDTOlcEhVEoVMSGOUqlAJpUB4PFOUViQR2FeHl5f
EIO+lKKCMiqtpeRZdDP+H6Tt0S93PCEBWF5dJr7X2sbqR1YR8fkZvTXC1b5+Vj34
ENdHHCQkkGvQ4xobI0drwWaro7KyhEh4Kl36mTtw9K0jIsD25/4guXDlCtFIHDGR
orC4iOo5VlRqBT3DDtAZUeRko9NpkcpiLLbNZWpqbMY1DPBfocXkQcBavxQAAAAA
SUVORK5CYII="></p>
#+END_HTML

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-08 14:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-07 17:49 Images and html-export via data: ? Renzo Been :-)
2009-02-07 18:55 ` Sebastian Rose
2009-02-07 19:44 ` Manish
2009-02-07 20:31   ` Renzo Been :-)
2009-02-08 13:22 ` Carsten Dominik
2009-02-08 14:34   ` Renzo Been :-)

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).