emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* HTML export > Resizing an activated inline image
@ 2011-04-06  8:14 Francesco Pizzolante
  0 siblings, 0 replies; 2+ messages in thread
From: Francesco Pizzolante @ 2011-04-06  8:14 UTC (permalink / raw)
  To: mailing-list-org-mode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: HTML export > Resizing an activated inline image
@ 2011-04-17 23:47 Mark S
  0 siblings, 0 replies; 2+ messages in thread
From: Mark S @ 2011-04-17 23:47 UTC (permalink / raw)
  To: emacs-orgmode


Just to say, I also am interested in how you would do this. There are  
probably more attributes that I would like to add to the image (like size  
and alignment for instance) than there are attributes I would like to add  
to the link.

Mark


--- On Wed, 4/6/11, Francesco Pizzolante <fpz@missioncriticalit.com> wrote:

> From: Francesco Pizzolante <fpz@missioncriticalit.com>
> Subject: [O] HTML export > Resizing an activated inline image
> To: "mailing-list-org-mode" <emacs-orgmode@gnu.org>
> Date: Wednesday, April 6, 2011, 1:14 AM
> 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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-17 22:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-06  8:14 HTML export > Resizing an activated inline image Francesco Pizzolante
2011-04-17 23:47 Mark S

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).