From: Giri Prashanth <giri.prashanth@gmail.com>
To: Johannes Brauer <brauer@nordakademie.de>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Scaling of image previews in org-mode
Date: Thu, 4 Aug 2016 09:53:23 -0700 [thread overview]
Message-ID: <CABp7NWQMqvGztuGgLU+dqgzjfy4XSH63DO_O5yKgpFnRSPiHHw@mail.gmail.com> (raw)
In-Reply-To: <7114273A-4166-4243-B8E9-0E247E193F3B@nordakademie.de>
[-- Attachment #1: Type: text/plain, Size: 1286 bytes --]
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 <brauer@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.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
>> 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
[-- Attachment #2: Type: text/html, Size: 2600 bytes --]
next prev parent reply other threads:[~2016-08-04 16:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-03 19:20 Scaling of image previews in org-mode Johannes Brauer
2016-08-03 22:09 ` Giri Prashanth
2016-08-04 8:26 ` Johannes Brauer
2016-08-04 16:53 ` Giri Prashanth [this message]
2016-08-07 23:16 ` John Kitchin
2016-08-09 17:22 ` Johannes Brauer
2016-08-10 8:11 ` Uwe Brauer
2016-08-10 14:44 ` John Kitchin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CABp7NWQMqvGztuGgLU+dqgzjfy4XSH63DO_O5yKgpFnRSPiHHw@mail.gmail.com \
--to=giri.prashanth@gmail.com \
--cc=brauer@nordakademie.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.