emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-image-actual-width has no effect


From: Claudius Mueller
Subject: Re: [O] org-image-actual-width has no effect
Date: Fri, 29 Aug 2014 17:01:42 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0

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 <address@hidden> 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, address@hidden 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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]