Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Francesco Pizzolante <fpz-djc/iPCCuDYQheJpep6IedvLeJWuRmrY <at> public.gmane.org>
Subject: HTML export > Resizing an activated inline image
Newsgroups: gmane.emacs.orgmode
Date: Wednesday 6th April 2011 08:14:18 UTC (over 5 years ago)
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---
./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---

--8<---------------cut here---------------end--------------->8---

Any idea on the way to the get the following HTML code from Org?

--8<---------------cut here---------------start------------->8---

--8<---------------cut here---------------end--------------->8---

Thanks for your help.

Francesco
 
CD: 16ms