[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/org-contacts-rebased 7dd30d9 115/118: replace gnus-rescal
From: |
Stefan Monnier |
Subject: |
[elpa] scratch/org-contacts-rebased 7dd30d9 115/118: replace gnus-rescale-image with create-image property :height |
Date: |
Fri, 12 Nov 2021 15:37:15 -0500 (EST) |
branch: scratch/org-contacts-rebased
commit 7dd30d90d09f8ed6a0b7d7c319dcc9b464333340
Author: stardiviner <numbchild@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
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 6e0b16d..f7644f8 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* ((email-list (org-entry-get pom org-contacts-email-property))
- [elpa] scratch/org-contacts-rebased 8d0ca82 090/118: Update tel link definition, (continued)
- [elpa] scratch/org-contacts-rebased 8d0ca82 090/118: Update tel link definition, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 58ea7f2 095/118: org-contacts.el: Fix org-store-link error caused by org-contacts, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased dcbbc77 097/118: org-contacts.el: Inherit face from org-link, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased d1365ce 101/118: org-contacts.el: Use `bound-and-true-p' to check (unbound) var, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 83f7226 103/118: Fix typo in 124cc7a1a, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased f81ebdc 105/118: Prefer HTTPS to HTTP for links to gnu.org, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 50fff11 107/118: Don't use deprecated functions, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased ede6e73 108/118: Remove compatibility code, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 3ad99fe 112/118: add README.org, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased c472159 113/118: Avoid *Org-Agenda* buffer use org-contacts-matcher in buffer-name, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 7dd30d9 115/118: replace gnus-rescale-image with create-image property :height,
Stefan Monnier <=
- [elpa] scratch/org-contacts-rebased 974f1b7 117/118: Add package introduction in README, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 3f635df 118/118: Update source code metadata keywords and usage description, Stefan Monnier, 2021/11/12