emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Inline Images Export Bug
@ 2015-08-26 17:51 Scott Randby
  2015-08-26 18:06 ` Rasmus
  2015-08-27  1:35 ` Nick Dokos
  0 siblings, 2 replies; 11+ messages in thread
From: Scott Randby @ 2015-08-26 17:51 UTC (permalink / raw)
  To: emacs-org list

When did Org start using the <object> tag for inline image HTML export? 
This is a horrible bug.

I use many SVG images in my documents. Here is a sample bit of Org code:

#+ATTR_HTML: :width 50% :style display: block; margin-right: auto; 
margin-left: auto;
[[./graphic-1.svg]]

I used to get this when exporting:

<img src="./graphic-1.svg" alt="graphic-1.svg" width="50%" 
style="display: block; margin-right: auto; margin-left: auto;" />

Now I get this:

<object type="image/svg+xml" data="./graphic-1.svg" width="50%" 
style="display: block; margin-right: auto; margin-left: auto;">Sorry, 
your browser does not support SVG.</object>

The problems with the second bit of exported code is that it doesn't 
scale the image to fit the block with 50% width (only a small part of 
the image is visible), and you when you right click on the image, you 
can't view it, save it or anything.

The documentation for 8.3.1 says this about org-html-inline-images:

    Non-nil means inline images into exported HTML pages.  This is done
    using an <img> tag.  When nil, an anchor with href is used to link
    to the image.

Clearly, Org 8.3 is not using an <img> tag when exporting SVG images to 
HTML, something which is a major issue for me. It essentially makes Org 
unusable for HTML export. I really would appreciate a fix for this bug.

Scott Randby

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

end of thread, other threads:[~2015-08-27  1:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-26 17:51 Inline Images Export Bug Scott Randby
2015-08-26 18:06 ` Rasmus
2015-08-26 19:26   ` Scott Randby
2015-08-26 22:35     ` Rasmus
2015-08-26 23:06       ` Scott Randby
2015-08-26 19:39   ` Pip Cet
2015-08-26 21:56     ` Rasmus
2015-08-26 22:40       ` Pip Cet
2015-08-26 23:13         ` Scott Randby
2015-08-26 19:50   ` Scott Randby
2015-08-27  1:35 ` Nick Dokos

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