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

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

[elpa] externals/org-contacts c8408cf44e 118/154: replace gnus-rescale-i


From: ELPA Syncer
Subject: [elpa] externals/org-contacts c8408cf44e 118/154: replace gnus-rescale-image with create-image property :height
Date: Fri, 9 Sep 2022 15:58:53 -0400 (EDT)

branch: externals/org-contacts
commit c8408cf44eb276894e657ad46bf826e544e92239
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    replace gnus-rescale-image with create-image property :height
---
 org-contacts.el | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/org-contacts.el b/org-contacts.el
index a167ad2e79..022e750988 100644
--- a/org-contacts.el
+++ b/org-contacts.el
@@ -911,11 +911,9 @@ address."
                          (t (expand-file-name avatar (file-name-directory 
(first org-contacts-files))))))))
       (when image-path
         (throw 'icon
-               (if (fboundp 'gnus-rescale-image)
-                   ;; FIXME `gnus-rescale-image' does not support rescale 
`create-image' spec.
-                   (gnus-rescale-image (create-image image-path)
-                                       (cons org-contacts-icon-size 
org-contacts-icon-size))
-                 (create-image image-path)))))
+               (if (featurep 'imagemagick)
+                   (create-image image-path 'imagemagick nil :height 
org-contacts-icon-size)
+                 (create-image image-path nil nil :height 
org-contacts-icon-size)))))
     ;; Next, try Gravatar
     (when org-contacts-icon-use-gravatar
       (let* ((gravatar-size org-contacts-icon-size)



reply via email to

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