From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aankhen Subject: Re: Inline Images Showing as Link Date: Thu, 21 Apr 2011 13:45:56 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:32883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCp4K-0003Wh-Oq for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 04:16:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCp3h-0001c6-C7 for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 04:16:56 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:32888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCp3h-0001c0-8m for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 04:16:17 -0400 Received: by yxt33 with SMTP id 33so509722yxt.0 for ; Thu, 21 Apr 2011 01:16:16 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andy Jewell , Org-mode ml Hi Andy, On Thu, Apr 21, 2011 at 05:16, Andy Jewell wrote: > Hi. . . I'm having trouble getting an image URL to render as an inline im= age > in the html export.=C2=A0 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.=C2= =A0 Here's > the markup: > > * See the image below: > > [[https://docs.google.com/leaf?id=3D0B-swGEqSDpxyMjgwNjE0MzEtMTA4OC00NTdm= LWE3MjktMDJmOGE5ZWM2YjY0&hl=3Den]] > * 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=E2=80=99re 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=E2=80=99d need to majorly rejigger them to make Org recognize y= our link as an image. Aankhen