Hey Bastien,

Thanks for the response. That ATTR_HTML comes in very handy. I made one adjustment to your code, and it totally worked! Amazing! 

Here it is in full:

#+ATTR_LaTeX: :width 300px
#+ATTR_HTML: :rel lightbox :href image.png
[[file:image.png]]

Thanks!




On Mon, Jan 20, 2014 at 6:19 AM, Bastien <bzg@gnu.org> wrote:
Hi Peter,

Peter Salazar <cycleofsong@gmail.com> writes:

> Alternatively, how do I specify the LaTeX image on one line, and the
> HTML image as an <a href rel=lightbox> on a different line, such that
> the link doesn't appear in the LaTeX export and the image doesn't get
> duplicated in the HTML export?

#+ATTR_LaTeX: :width 300px
#+ATTR_HTML: :rel lightbox
[[file:image.png]]

HTH,

--
 Bastien