emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Francesco Pizzolante <fpz-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org>
To: mailing-list-org-mode <emacs-orgmode-mXXj517/zsQ@public.gmane.org>
Subject: HTML export > Resizing an activated inline image
Date: Wed, 06 Apr 2011 10:14:18 +0200	[thread overview]
Message-ID: <87hbab6bl1.fsf@somewhere.org> (raw)

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

             reply	other threads:[~2011-04-06  8:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-06  8:14 Francesco Pizzolante [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-04-17 23:47 HTML export > Resizing an activated inline image Mark S

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hbab6bl1.fsf@somewhere.org \
    --to=fpz-djc/ipccudyqhejpep6iedvlejwurmry@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).