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 <bra...@nordakademie.de>
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 <giri.prasha...@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 <bra...@nordakademie.de>
> 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

Reply via email to