From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Scaling of image previews in org-mode Date: Sun, 07 Aug 2016 19:16:06 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWXIj-000123-PE for emacs-orgmode@gnu.org; Sun, 07 Aug 2016 19:16:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWXIf-0007c0-Hs for emacs-orgmode@gnu.org; Sun, 07 Aug 2016 19:16:12 -0400 Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:36364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWXIf-0007bu-Cg for emacs-orgmode@gnu.org; Sun, 07 Aug 2016 19:16:09 -0400 Received: by mail-qk0-x233.google.com with SMTP id v123so175255085qkh.3 for ; Sun, 07 Aug 2016 16:16:09 -0700 (PDT) In-reply-to: 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: Johannes Brauer Cc: "emacs-orgmode@gnu.org" I use this code here: https://github.com/jkitchin/scimax/blob/master/scimax-org.el#L957 to provide inline scaling in Emacs when it is not built with imagemagick. Johannes Brauer writes: > Hi! > > If I insert a jpg in my org-mode document, I can preview it but not scale its width, like so: > > Add the following code to my init.el file: > (setq org-image-actual-width nil) > > Then insert this code in my document, where I want the image to appear: > #+ATTR_ORG: :width 20 > [[./test.jpg]] > > No matter which value I give for the width argument the image appears in the buffer always in its original size. > > However, scaling for html export with #+attr_html works fine. 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. > > What is going wrong? > > (Org-mode version 8.3.4 (8.3.4-99-ga8e4a3-elpa @ /Users/johannes/Library/Preferences/Aquamacs Emacs/Packages/elpa/org-20160704/) > > Johannes -- 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