emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Scott Randby <srandby@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: Inline Images Export Bug
Date: Wed, 26 Aug 2015 13:51:59 -0400	[thread overview]
Message-ID: <55DDFCBF.2050202@gmail.com> (raw)

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

             reply	other threads:[~2015-08-26 17:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-26 17:51 Scott Randby [this message]
2015-08-26 18:06 ` Inline Images Export Bug 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

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=55DDFCBF.2050202@gmail.com \
    --to=srandby@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).