From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Inline Images Export Bug Date: Wed, 26 Aug 2015 23:56:49 +0200 Message-ID: <87egip1zoe.fsf@gmx.us> References: <55DDFCBF.2050202@gmail.com> <876141apq4.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUigk-0000E5-38 for emacs-orgmode@gnu.org; Wed, 26 Aug 2015 17:56:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUigf-00029a-Vq for emacs-orgmode@gnu.org; Wed, 26 Aug 2015 17:56:58 -0400 Received: from mout.gmx.net ([212.227.15.18]:54132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUigf-00029H-PB for emacs-orgmode@gnu.org; Wed, 26 Aug 2015 17:56:53 -0400 In-Reply-To: (Pip Cet's message of "Wed, 26 Aug 2015 19:39:37 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: pipcet@gmail.com Cc: emacs-orgmode@gnu.org Hi, Pip Cet 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