From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Brauer Subject: Re: Scaling of image previews in org-mode Date: Thu, 4 Aug 2016 08:26:31 +0000 Message-ID: <7114273A-4166-4243-B8E9-0E247E193F3B@nordakademie.de> References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_7114273A41664243B8E90E247E193F3Bnordakademiede_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVDzG-0001hO-IT for emacs-orgmode@gnu.org; Thu, 04 Aug 2016 04:26:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVDzB-0005CB-J8 for emacs-orgmode@gnu.org; Thu, 04 Aug 2016 04:26:42 -0400 Received: from merkur.nordakademie.de ([194.94.98.156]:58179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVDzB-0005Ba-7j for emacs-orgmode@gnu.org; Thu, 04 Aug 2016 04:26:37 -0400 In-Reply-To: Content-Language: de-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: Giri Prashanth Cc: "emacs-orgmode@gnu.org" --_000_7114273A41664243B8E90E247E193F3Bnordakademiede_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 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 --_000_7114273A41664243B8E90E247E193F3Bnordakademiede_ Content-Type: text/html; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable I think my Aquamacs 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 ImageMagick support for image scaling to work.


On Wed, Aug 3, 2016 at 12:20 PM, Johannes Brauer= <= brauer@nordakademie.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

--_000_7114273A41664243B8E90E247E193F3Bnordakademiede_--