From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Confused about inline html images Date: Sun, 13 Jan 2013 13:54:07 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuTdD-0008TP-T4 for emacs-orgmode@gnu.org; Sun, 13 Jan 2013 14:54:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TuTdA-0001v4-C6 for emacs-orgmode@gnu.org; Sun, 13 Jan 2013 14:54:11 -0500 Received: from mail-oa0-f47.google.com ([209.85.219.47]:53179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuTdA-0001uf-6s for emacs-orgmode@gnu.org; Sun, 13 Jan 2013 14:54:08 -0500 Received: by mail-oa0-f47.google.com with SMTP id h1so3331436oag.6 for ; Sun, 13 Jan 2013 11:54:07 -0800 (PST) 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: emacs-orgmode On Sun, Jan 13, 2013 at 1:48 PM, John Hendy wrote: > I'm trying to recreate this html: > > width="400px" /> > > My approach was like so: > > #+attr_html: width="400px" > [[http://path/to/image.jpg][http://path/to/image.jpg]] > > From the description at using inline images > (http://orgmode.org/manual/Images-in-HTML-export.html): > > #+begin_quote > If the description part itself is a file: link or a http: URL pointing > to an image, this image will be inlined and activated so that clicking > on the image will activate the link. For example, to include a > thumbnail that will link to a high resolution version of the image, > you could use: > > [[file:highres.jpg][file:thumb.jpg]] > #+end_quote > > That sounds like my example above should work; the example indicates > that thumb.jpg would be inlined and clicking it would send to > highres.jpg. I'd like http://path/to/image.jpg to be inlined at 400px > but clicking it would make the full size jpg viewable in a browser. > > I haven't changed the variable org-export-html-inline-images. It > should be set to the default, which appears to be 'maybe.' > As usual (right after tinkering a lot and finally mailing the list), this seems to have just started working, so I'll chalk that up to something I goofed in my bracket syntax perhaps? Still one issue: it's applying the attr_html to the wrong bit. Here's the resultant export output: #+attr_html: width="400px" [[http://path/to/file.jpg][http://path/to/file.jpg]] becomes: file.jpg So the width attr is passed to the link section, not the the img. Is this a bug? Thanks, John > > Thanks for any suggestions, > John