From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giri Prashanth Subject: Re: Scaling of image previews in org-mode Date: Wed, 3 Aug 2016 15:09:01 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11484ae0bfa557053932146b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bV4LZ-0002Oz-UE for emacs-orgmode@gnu.org; Wed, 03 Aug 2016 18:09:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bV4LX-0002Y4-Ns for emacs-orgmode@gnu.org; Wed, 03 Aug 2016 18:09:04 -0400 Received: from mail-vk0-x233.google.com ([2607:f8b0:400c:c05::233]:35715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bV4LX-0002Xs-Ix for emacs-orgmode@gnu.org; Wed, 03 Aug 2016 18:09:03 -0400 Received: by mail-vk0-x233.google.com with SMTP id w127so156786310vkh.2 for ; Wed, 03 Aug 2016 15:09:03 -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" Cc: "emacs-orgmode@gnu.org" --001a11484ae0bfa557053932146b Content-Type: text/plain; charset=UTF-8 I think you need to build emacs with ImageMagick support for image scaling to work. On Wed, Aug 3, 2016 at 12:20 PM, Johannes Brauer wrote: > 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. > > 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 > -- -giri --001a11484ae0bfa557053932146b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I think you need to build emacs with=C2=A0ImageMagick support for image scaling to work.


On Wed, Aug 3, 2016 at 12:20 PM, Johannes Brauer &l= t;brauer@nordak= ademie.de> wrote:
Hi!

If I insert a jpg in my org-mode document, I can preview it but not scale i= ts 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 th= e buffer always in its original size.

However, scaling for html export with #+attr_html works fine.

What is going wrong?

(Org-mode version 8.3.4 (8.3.4-99-ga8e4a3-elpa @ /Users/johannes/Library/Pr= eferences/Aquamacs Emacs/Packages/elpa/org-20160704/)

Johannes



--
-giri
--001a11484ae0bfa557053932146b--