[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] HTML export > Resizing an activated inline image
From: |
Francesco Pizzolante |
Subject: |
[O] HTML export > Resizing an activated inline image |
Date: |
Wed, 06 Apr 2011 10:14:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt) |
Hi,
When you want to resize an inline image, you have to write something like the
following:
--8<---------------cut here---------------start------------->8---
#+ATTR_HTML: width=50%
[[./images/toto.png]]
--8<---------------cut here---------------end--------------->8---
This generates the following HTML code:
--8<---------------cut here---------------start------------->8---
<img src="./images/toto.png" width=50% alt="./images/toto.png" />
--8<---------------cut here---------------end--------------->8---
Now, I would like my image to be activated and the link should point to the
image itself. So, I'm trying the following:
--8<---------------cut here---------------start------------->8---
#+ATTR_HTML: width=50%
[[./images/toto.png][file:./images/toto.png]]
--8<---------------cut here---------------end--------------->8---
But this adds the width to the anchor and not to the image:
--8<---------------cut here---------------start------------->8---
<a href="./images/toto.png" width=50%><img src="./images/toto.png"/></a>
--8<---------------cut here---------------end--------------->8---
Any idea on the way to the get the following HTML code from Org?
--8<---------------cut here---------------start------------->8---
<a href="./images/toto.png"><img src="./images/toto.png" width=50% /></a>
--8<---------------cut here---------------end--------------->8---
Thanks for your help.
Francesco
- [O] HTML export > Resizing an activated inline image,
Francesco Pizzolante <=