From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-image-actual-width has no effect Date: Fri, 29 Aug 2014 10:43:12 -0400 Message-ID: <87r3zzwe4f.fsf@alphaville.dokosmarshall.org> References: <53FFB9F8.1080605@gmail.com> <87bnr4jhrm.fsf@karnak.MagnumOpus.khem> <54008482.8040906@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNNOo-0000Kl-NV for emacs-orgmode@gnu.org; Fri, 29 Aug 2014 10:43:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNNOg-0001fv-GL for emacs-orgmode@gnu.org; Fri, 29 Aug 2014 10:43:34 -0400 Received: from plane.gmane.org ([80.91.229.3]:37192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNNOg-0001fa-4i for emacs-orgmode@gnu.org; Fri, 29 Aug 2014 10:43:26 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XNNOf-0003fq-2c for emacs-orgmode@gnu.org; Fri, 29 Aug 2014 16:43:25 +0200 Received: from pool-108-20-41-17.bstnma.fios.verizon.net ([108.20.41.17]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Aug 2014 16:43:25 +0200 Received: from ndokos by pool-108-20-41-17.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Aug 2014 16:43:25 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Claudius Mueller writes: > Thank you for pointing this out. I compiled emacs 24.3 with > imagemagick support: > > "ldd /usr/local/bin/emacs | grep Magick" ====> > libMagickWand-6.Q16.so.1 => /usr/lib64/libMagickWand-6.Q16.so.1 > (0x00007f3946278000) > libMagickCore-6.Q16.so.1 => /usr/lib64/libMagickCore-6.Q16.so.1 > (0x00007f3945dd9000) > > However, inline images are still not scaled at all if I include: > > (setq org-image-actual-width 50) > > in my .emacs file. > > Any other ideas of what I am doing wrong? > Maybe check your *Messages* buffer for errors? FWIW, it works fine here with the following file: --8<---------------cut here---------------start------------->8--- * Inline images This is a test: [[file:hello-world.png]] #+BEGIN_SRC ditaa :file hello-world.png :cmdline -r +--------------+ | | | Hello World! | | | +--------------+ #+END_SRC #+RESULTS: [[file:hello-world.png]] * image width #+BEGIN_SRC emacs-lisp (setq org-image-actual-width 50) #+END_SRC #+BEGIN_SRC emacs-lisp (setq org-image-actual-width 500) #+END_SRC --8<---------------cut here---------------end--------------->8--- Depending on which emacs-lisp source block I evaluate, when I do C-c C-x C-v afterwards, I get small images or large images. Version info: Fedora 20 GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 2014-08-11 Org-mode version 8.3beta (release_8.3beta-270-g4dd9f3.dirty @ /home/nick/elisp/org-mode/lisp/) Nick > Thank you very much for your help! > Claudius > > On 08/28/2014 07:50 PM, Charles Philip Chan wrote: >> On 28 Aug 2014, claudius.mueller@gmail.com wrote: >> >>> I am using emacs 24.3 in openSUSE 13.1. I have not compiled emacs >>> myself, but the core imagemagick libraries are part of the >>> dependencies, which makes me assume that it's been compiled with >>> imagemagick support. >> No, the Emacs in OpenSuSE 13.1 is not compiled with Image Magick >> support- "ldd /usr/bin/emacs | grep Magick" produces nothing. Where as, >> this is the output of my self-compiled version. >> >> ,----[ ldd /usr/local/bin/emacs | grep Magick ] >> | libMagickWand-6.Q16.so.1 => /usr/lib64/libMagickWand-6.Q16.so.1 (0x00007fe7e8072000) >> | libMagickCore-6.Q16.so.1 => /usr/lib64/libMagickCore-6.Q16.so.1 (0x00007fe7e7bd3000 >> `---- >> >>> I can display inline images of several file types just fine (tif, png, >>> gif, ...). >> This is because Emacs is using libtiff, libjpeg, libpng, libxpm etc. >> >> Charles >> > > > -- Nick