From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Brauer Subject: Re: Scaling of image previews in org-mode Date: Tue, 9 Aug 2016 17:22:08 +0000 Message-ID: <13C3F908-FFC0-4405-B5A7-D200137FD852@nordakademie.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXAjN-00047M-QU for emacs-orgmode@gnu.org; Tue, 09 Aug 2016 13:22:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXAjJ-00011r-IB for emacs-orgmode@gnu.org; Tue, 09 Aug 2016 13:22:20 -0400 Received: from merkur.nordakademie.de ([194.94.98.156]:58553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXAjJ-000109-AU for emacs-orgmode@gnu.org; Tue, 09 Aug 2016 13:22:17 -0400 In-Reply-To: Content-Language: de-DE Content-ID: <743F604C3FFE6A45BD9843E746717341@nordakademie.de> 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" To: John Kitchin Cc: "emacs-orgmode@gnu.org" thank you for the hint, I will give it a try Johannes > Am 08.08.2016 um 01:16 schrieb John Kitchin : >=20 > I use this code here: > https://github.com/jkitchin/scimax/blob/master/scimax-org.el#L957 >=20 > to provide inline scaling in Emacs when it is not built with imagemagick. >=20 > Johannes Brauer writes: >=20 >> Hi! >>=20 >> If I insert a jpg in my org-mode document, I can preview it but not scal= e its width, like so: >>=20 >> Add the following code to my init.el file: >> (setq org-image-actual-width nil) >>=20 >> Then insert this code in my document, where I want the image to appear: >> #+ATTR_ORG: :width 20 >> [[./test.jpg]] >>=20 >> No matter which value I give for the width argument the image appears in= the buffer always in its original size. >>=20 >> However, scaling for html export with #+attr_html works fine. >=20 > Export is not the same as the inline scaling. I am not sure what happens > with export, but the browser may be doing the scaling. >=20 >>=20 >> What is going wrong? >>=20 >> (Org-mode version 8.3.4 (8.3.4-99-ga8e4a3-elpa @ /Users/johannes/Library= /Preferences/Aquamacs Emacs/Packages/elpa/org-20160704/) >>=20 >> Johannes >=20 >=20 > --=20 > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu