From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claudius Mueller Subject: Re: org-image-actual-width has no effect Date: Fri, 29 Aug 2014 17:01:42 -0400 Message-ID: <5400EA36.2000609@gmail.com> References: <53FFB9F8.1080605@gmail.com> <87bnr4jhrm.fsf@karnak.MagnumOpus.khem> <54008482.8040906@gmail.com> <87r3zzwe4f.fsf@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNTHe-0002m2-LV for emacs-orgmode@gnu.org; Fri, 29 Aug 2014 17:00:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNTHT-0002aM-RK for emacs-orgmode@gnu.org; Fri, 29 Aug 2014 17:00:34 -0400 Received: from mail-qa0-x234.google.com ([2607:f8b0:400d:c00::234]:52922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNTHT-0002aG-DS for emacs-orgmode@gnu.org; Fri, 29 Aug 2014 17:00:23 -0400 Received: by mail-qa0-f52.google.com with SMTP id f12so2662420qad.39 for ; Fri, 29 Aug 2014 14:00:22 -0700 (PDT) Received: from BrainDwork.site ([129.174.252.2]) by mx.google.com with ESMTPSA id q94sm1693508qgq.3.2014.08.29.14.00.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Aug 2014 14:00:21 -0700 (PDT) In-Reply-To: <87r3zzwe4f.fsf@alphaville.dokosmarshall.org> 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 I tried your file - but whatever I do the images are shown the same size. I also had to manually paste in ditaa.jar because my compiled emacs version (24.3) that includes org does not include the contributed org scripts. I guess I'm at my wits end. Thank you, Claudius On 08/29/2014 10:43 AM, Nick Dokos wrote: > 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 >>> >> >>