From: Rasmus <rasmus@gmx.us>
To: pipcet@gmail.com
Cc: emacs-orgmode@gnu.org
Subject: Re: Inline Images Export Bug
Date: Wed, 26 Aug 2015 23:56:49 +0200 [thread overview]
Message-ID: <87egip1zoe.fsf@gmx.us> (raw)
In-Reply-To: <CAOqdjBesHwjd4H4p_to=Fu6BrueyXW_aA-roJ2DThu8XtFBSSw@mail.gmail.com> (Pip Cet's message of "Wed, 26 Aug 2015 19:39:37 +0000")
Hi,
Pip Cet <pipcet@gmail.com> writes:
> let found = false;
> for (let el of svgdoc.getElementsByTagName("svg")) {
> let width = el.getAttribute("width");
> let height = el.getAttribute("height");
>
> let width_pt = width.match(/^([0-9]*)pt$/)[1];
> let height_pt = height.match(/^([0-9]*)pt$/)[1];
>
> let width_px = 5/4 * width_pt;
> let height_px = 5/4 * height_pt;
>
> object.setAttribute("width", width_px + "px");
> object.setAttribute("height", height_px + "px");
> found = true;
So are you saying that Org is changing the size from px to pt? Can you
try to explain the problem you observe in words?
Thanks,
Rasmus
--
The second rule of Fight Club is: You do not talk about Fight Club
next prev parent reply other threads:[~2015-08-26 21:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-26 17:51 Inline Images Export Bug Scott Randby
2015-08-26 18:06 ` Rasmus
2015-08-26 19:26 ` Scott Randby
2015-08-26 22:35 ` Rasmus
2015-08-26 23:06 ` Scott Randby
2015-08-26 19:39 ` Pip Cet
2015-08-26 21:56 ` Rasmus [this message]
2015-08-26 22:40 ` Pip Cet
2015-08-26 23:13 ` Scott Randby
2015-08-26 19:50 ` Scott Randby
2015-08-27 1:35 ` Nick Dokos
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87egip1zoe.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
--cc=pipcet@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.