emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/org 9dc08c9 5/5: org: Don't change image size based on


From: ELPA Syncer
Subject: [elpa] externals/org 9dc08c9 5/5: org: Don't change image size based on font size
Date: Mon, 25 Oct 2021 09:57:31 -0400 (EDT)

branch: externals/org
commit 9dc08c909343795aa9aefb2c47688b6f1a9c0203
Author: TEC <tec@tecosaur.com>
Commit: TEC <tec@tecosaur.com>

    org: Don't change image size based on font size
    
    * lisp/org.el (org--create-inline-image): Set :scale parameter to 1 to
    prevent font-size based rescaling.
    
    When `create-image' is called without the :scale parameter, the image
    size is expanded based on the default font size (if it is larger than
    10px).  When displaying images with a specified width in Org buffers,
    either in pixels or proportional to the text width, this width should
    not be modified according the to font size.  Giving a :scale parameter
    of 1 prevents this font-size based rescaling.
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index d95fc2a..21b2c54 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16706,7 +16706,7 @@ according to the value of 
`org-display-remote-inline-images'."
                         width
                         'imagemagick)
                    remote?
-                   :width width))))
+                   :width width :scale 1))))
 
 (defun org-display-inline-images (&optional include-linked refresh beg end)
   "Display inline images.



reply via email to

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