emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Aankhen <aankhen@gmail.com>
To: Andy Jewell <ajewell@adaptu.com>, Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Inline Images Showing as Link
Date: Thu, 21 Apr 2011 13:45:56 +0530	[thread overview]
Message-ID: <BANLkTimyGinpGG3YbpQo9kvGxDgZC4-3Yw@mail.gmail.com> (raw)
In-Reply-To: <BANLkTik9U10WGN6n2D23x2x6p8hwta4nNw@mail.gmail.com>

Hi Andy,

On Thu, Apr 21, 2011 at 05:16, Andy Jewell <ajewell@adaptu.com> wrote:
> Hi. . . I'm having trouble getting an image URL to render as an inline image
> in the html export.  It always renders it as a link.
>
> I have an image saved on Google but Google doesn't preserve the extension
> which I think confuses org-mode since it doesn't look like an image.  Here's
> the markup:
>
> * See the image below:
>
> [[https://docs.google.com/leaf?id=0B-swGEqSDpxyMjgwNjE0MzEtMTA4OC00NTdmLWE3MjktMDJmOGE5ZWM2YjY0&hl=en]]
> * See the image above
>
> I've tried adding a caption thinking that would provide a hint to render as
> an image but no success there.
>
> Can someone advise if there an option I'm missing?

The exporter uses the extension to figure out whether the location
being linked to is an image.  There is no extension here, so it
assumes you’re linking to a normal page.  Here are a few of the
relevant bits:

,----[ C-h v org-export-html-inline-image-extensions RET ]
| org-export-html-inline-image-extensions is a variable defined in
`org-html.el'.
| Its value is ("png" "jpeg" "jpg" "gif" "svg")
|
|
| Documentation:
| Extensions of image files that can be inlined into HTML.
|
| You can customize this variable.
`----

,----[ C-h f org-file-image-p RET ]
| org-file-image-p is a compiled Lisp function in `org.el'.
|
| (org-file-image-p FILE &optional EXTENSIONS)
|
| Return non-nil if FILE is an image.
`----

I think you’d need to majorly rejigger them to make Org recognize your
link as an image.

Aankhen

  reply	other threads:[~2011-04-21  8:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-20 23:46 Inline Images Showing as Link Andy Jewell
2011-04-21  8:15 ` Aankhen [this message]
2011-04-21  8:34   ` Manuel Giraud
2011-04-21 11:03     ` Radosław Grzanka
2011-04-21 12:05       ` Manuel Giraud
2011-04-21 13:16   ` Nick Dokos
2011-04-21 15:41     ` Andy Jewell

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=BANLkTimyGinpGG3YbpQo9kvGxDgZC4-3Yw@mail.gmail.com \
    --to=aankhen@gmail.com \
    --cc=ajewell@adaptu.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).