From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Jewell Subject: Inline Images Showing as Link Date: Wed, 20 Apr 2011 16:46:12 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec5215f27d2ec8a04a1623a6c Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCh6A-0006LG-SY for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 19:46:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCh69-0001ow-SE for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 19:46:18 -0400 Received: from na3sys009aog104.obsmtp.com ([74.125.149.73]:58431) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QCh69-0001oB-Jy for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 19:46:17 -0400 Received: by mail-pz0-f45.google.com with SMTP id 36so886428pzk.18 for ; Wed, 20 Apr 2011 16:46:12 -0700 (PDT) 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: emacs-orgmode@gnu.org --bcaec5215f27d2ec8a04a1623a6c Content-Type: text/plain; charset=ISO-8859-1 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? Thanks! Andy --bcaec5215f27d2ec8a04a1623a6c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi. . . I'm having trouble getting an image URL to render as an inline = image in the html export.=A0 It always renders it as a link.

I have = an image saved on Google but Google doesn't p= reserve the extension which I think confuses org-mode since it doesn't = look like an image.=A0 Here's the markup:

* = See the image below:
=A0 [[https://do= cs.google.com/leaf?id=3D0B-swGEqSDpxyMjgwN= jE0MzEtMTA4OC00NTdmLWE3MjktMDJmOGE5ZWM2YjY0&hl=3Den]]
* See the image above

=A0
I've tried adding a caption thinking that would = provide a hint to render as an image but no success there.

Can someo= ne advise if there an option I'm missing?

Thanks!

Andy
--bcaec5215f27d2ec8a04a1623a6c-- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Giraud Subject: Re: Inline Images Showing as Link Date: Thu, 21 Apr 2011 10:34:07 +0200 Message-ID: <871v0wypds.fsf@univ-nantes.fr> 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]:45609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCpL2-0007WO-AH for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 04:34:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCpL1-0004bf-55 for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 04:34:12 -0400 Received: from smtp-tls1.univ-nantes.fr ([193.52.101.145]:43446 helo=smtp-tls.univ-nantes.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCpL0-0004bL-UB for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 04:34:11 -0400 In-Reply-To: (aankhen@gmail.com's message of "Thu, 21 Apr 2011 13:45:56 +0530") 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: Aankhen Cc: Andy Jewell , Org-mode ml Hi, Aankhen writes: > [...] > I think you=E2=80=99d need to majorly rejigger them to make Org recognize= your > link as an image. And it doesn't seem to work in HTML anyway. I just tried to render this: --8<---------------cut here---------------start------------->8--- 3D"none"/ --8<---------------cut here---------------end--------------->8--- in firefox and only get the alternative. (its the google way of web). --=20 Manuel Giraud From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?UmFkb3PFgmF3IEdyemFua2E=?= Subject: Re: Inline Images Showing as Link Date: Thu, 21 Apr 2011 13:03:41 +0200 Message-ID: <4DB00F0D.6010905@gmail.com> References: <871v0wypds.fsf@univ-nantes.fr> Reply-To: radoslawg@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCrfv-0005OE-UA for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 07:03:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCrfu-0005h2-Sk for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 07:03:55 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:35780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCrfu-0005gg-Me for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 07:03:54 -0400 Received: by fxm18 with SMTP id 18so1126003fxm.0 for ; Thu, 21 Apr 2011 04:03:53 -0700 (PDT) In-Reply-To: <871v0wypds.fsf@univ-nantes.fr> 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: emacs-orgmode@gnu.org Hello, W dniu 2011-04-21 10:34, Manuel Giraud pisze: > > Hi, > > Aankhen writes: > >> [...] >> I think you’d need to majorly rejigger them to make Org recognize your >> link as an image. > > > And it doesn't seem to work in HTML anyway. I just tried to render this: > > --8<---------------cut here---------------start------------->8--- > none > --8<---------------cut here---------------end--------------->8--- > > in firefox and only get the alternative. (its the google way of web). > That is because this is not link to image but to the page that shows image. Direct link to image is https://lh6.googleusercontent.com/KXI0totQ7IlQlRpUqszAYhRM0ldASL6vdl3VWDEswuoStG-jMMbNffNW-pHwRCR_xiXpgGNNaZGZfUWJ9UlGHjvwxQ=s512 and none works fine. However, giving that this is some google docs image over https it probably will not always work. Cheers, Radek. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Giraud Subject: Re: Inline Images Showing as Link Date: Thu, 21 Apr 2011 14:05:38 +0200 Message-ID: <87sjtbyfl9.fsf@univ-nantes.fr> References: <871v0wypds.fsf@univ-nantes.fr> <4DB00F0D.6010905@gmail.com> 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]:35888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCsdj-0008Lj-Es for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 08:05:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCsdi-0006ad-IN for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 08:05:43 -0400 Received: from smtp-tls1.univ-nantes.fr ([193.52.101.145]:33303 helo=smtp-tls.univ-nantes.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCsdi-0006aY-AP for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 08:05:42 -0400 In-Reply-To: <4DB00F0D.6010905@gmail.com> (=?utf-8?Q?=22Rados=C5=82aw?= Grzanka"'s message of "Thu, 21 Apr 2011 13:03:41 +0200") 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: radoslawg@gmail.com Cc: emacs-orgmode@gnu.org Rados=C5=82aw Grzanka writes: > [...] > src=3D"https://lh6.googleusercontent.com/KXI0totQ7IlQlRpUqszAYhRM0ldASL6v= dl3VWDEswuoStG-jMMbNffNW-pHwRCR_xiXpgGNNaZGZfUWJ9UlGHjvwxQ=3Ds512" > alt=3D"none"/> > > works fine. However, giving that this is some google docs image over > https it probably will not always work. Then the OP can do something like this: (add-to-list 'org-export-html-inline-image-extensions=20 "com/KXI0totQ7IlQlRpUqszAYhRM0ldASL6vdl3VWDEswuoStG-jMMbNffNW-= pHwRCR_xiXpgGNNaZGZfUWJ9UlGHjvwxQ=3Ds512") and html export will work afterwards (my eyes! it hurts!) --=20 Manuel Giraud From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Inline Images Showing as Link Date: Thu, 21 Apr 2011 09:16:22 -0400 Message-ID: <9868.1303391782@alphaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com 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]:52916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCugf-0005ZR-Ud for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 10:16:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCugf-000317-7F for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 10:16:53 -0400 Received: from vms173007pub.verizon.net ([206.46.173.7]:63614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCugf-00030v-3v for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 10:16:53 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173007.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LK000FPV7JAUY70@vms173007.mailsrvcs.net> for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 08:16:29 -0500 (CDT) In-reply-to: Message from Aankhen of "Thu\, 21 Apr 2011 13\:45\:56 +0530." 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: Aankhen Cc: Andy Jewell , nicholas.dokos@hp.com, Org-mode ml Aankhen wrote: >=20 > I think you=E2=80=99d need to majorly rejigger them to make Org recognize= your > link as an image. >=20 Agreed, but in addition, I don't think that the link *is* an image at all: I visit, View Source and get a faceful of HTML and JS. Forget about org: just write a simple HTML page with an tag and that URL as its source - does it work? It sure doesn't work for me. Nick From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Jewell Subject: Re: Inline Images Showing as Link Date: Thu, 21 Apr 2011 08:41:12 -0700 Message-ID: References: <9868.1303391782@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec5215f272ec02e04a16f92b1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCw0K-0003iL-LQ for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 11:41:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCw0J-0000hl-KR for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 11:41:16 -0400 Received: from na3sys009aog101.obsmtp.com ([74.125.149.67]:40758) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QCw0J-0000fo-CQ for emacs-orgmode@gnu.org; Thu, 21 Apr 2011 11:41:15 -0400 Received: by mail-pv0-f172.google.com with SMTP id 1so1429543pvh.17 for ; Thu, 21 Apr 2011 08:41:12 -0700 (PDT) In-Reply-To: <9868.1303391782@alphaville.dokosmarshall.org> 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: Org-mode ml --bcaec5215f272ec02e04a16f92b1 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Ah - thanks to all for clarifying the issues. Looks like my grand plan of pulling my images from Google is not so grand after all. Thanks again! Andy On Thu, Apr 21, 2011 at 6:16 AM, Nick Dokos wrote: > Aankhen wrote: > > > > > > I think you=92d need to majorly rejigger them to make Org recognize you= r > > link as an image. > > > > Agreed, but in addition, I don't think that the link *is* an image at > all: I visit, View Source and get a faceful of HTML and JS. > > Forget about org: just write a simple HTML page with an tag and > that URL as its source - does it work? It sure doesn't work for me. > > Nick > --bcaec5215f272ec02e04a16f92b1 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Ah - thanks to all for clarifying the issues.=A0 Looks like my grand plan o= f pulling my images from Google is not so grand after all.=A0 Thanks again!=

Andy

On Thu, Apr 21, 2011 at 6:16= AM, Nick Dokos <nicholas.dokos@hp.com> wrote:
Aankhen <aankhen@gmail.com>= wrote:


>
> I think you=92d need to majorly rejigger them to make Org recognize yo= ur
> link as an image.
>

Agreed, but in addition, I don't think that the link *is* an imag= e at
all: I visit, View Source and get a faceful of HTML and JS.

Forget about org: just write a simple HTML page with an <img> tag and=
that URL as its source - does it work? It sure doesn't work for me.

Nick

--bcaec5215f272ec02e04a16f92b1--