From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giri Prashanth Subject: Re: Scaling of image previews in org-mode Date: Thu, 4 Aug 2016 09:53:23 -0700 Message-ID: References: <7114273A-4166-4243-B8E9-0E247E193F3B@nordakademie.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c1228aec2b11f053941c9a0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVLtf-0008KJ-8v for emacs-orgmode@gnu.org; Thu, 04 Aug 2016 12:53:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVLtc-0005e3-Ss for emacs-orgmode@gnu.org; Thu, 04 Aug 2016 12:53:26 -0400 Received: from mail-ua0-x22d.google.com ([2607:f8b0:400c:c08::22d]:34855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVLtc-0005dx-Mh for emacs-orgmode@gnu.org; Thu, 04 Aug 2016 12:53:24 -0400 Received: by mail-ua0-x22d.google.com with SMTP id i31so33280464uai.2 for ; Thu, 04 Aug 2016 09:53:24 -0700 (PDT) In-Reply-To: <7114273A-4166-4243-B8E9-0E247E193F3B@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: Johannes Brauer Cc: "emacs-orgmode@gnu.org" --94eb2c1228aec2b11f053941c9a0 Content-Type: text/plain; charset=UTF-8 The following attribute worked for me to scale image: #+attr_html: :width 100px But I had to build emacs25 in OS X with ImageMagick support. On Thu, Aug 4, 2016 at 1:26 AM, Johannes Brauer wrote: > I think my Aquamacs 3.2 GNU Emacs 24.4.51.2 has got ImageMagick support. > > Am 04.08.2016 um 00:09 schrieb Giri Prashanth : > > 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 > > > -- -giri --94eb2c1228aec2b11f053941c9a0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The following attribute worked for me to scale image:=
#+attr_html: :width 100px

But I had to = build emacs25 in OS X =C2=A0with ImageMagick support.

On Thu, Aug 4, 2016 at 1:26= AM, Johannes Brauer <brauer@nordakademie.de> wrote:
I think my=C2=A0Aquamacs 3.2 GNU Emacs 24.4.51.2 has got ImageMagick suppor= t.

Am 04.08.2016 um 00:09 schrieb Giri Prashanth <giri.prashanth@gmail.com>:=

I think you need to build emacs with=C2=A0Ima= geMagick support for image scaling to work.


On Wed, Aug 3, 2016 at 12:20 PM, Johannes Brauer= <brauer@nord= akademie.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/Preferences/Aquamacs Emacs/Packages/elpa/org-20160704/)

Johannes



--
-giri




--
-giri
--94eb2c1228aec2b11f053941c9a0--