emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Inline Images Showing as Link


From: Aankhen
Subject: Re: [O] Inline Images Showing as Link
Date: Thu, 21 Apr 2011 13:45:56 +0530

Hi Andy,

On Thu, Apr 21, 2011 at 05:16, Andy Jewell <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]