emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Scaling of image previews in org-mode


From: John Kitchin
Subject: Re: [O] Scaling of image previews in org-mode
Date: Sun, 07 Aug 2016 19:16:06 -0400
User-agent: mu4e 0.9.16; emacs 25.1.50.1

I use this code here:
https://github.com/jkitchin/scimax/blob/master/scimax-org.el#L957

to provide inline scaling in Emacs when it is not built with imagemagick.

Johannes Brauer writes:

> 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.

Export is not the same as the inline scaling. I am not sure what happens
with export, but the browser may be doing the scaling.

>
> 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


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



reply via email to

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