# HG changeset patch # User Zachary Kanfer # Date 1607326330 18000 # Mon Dec 07 02:32:10 2020 -0500 # Node ID 341d1a4a91a8acff5be6b81f95695e17c79c5309 # Parent 16b652d06d21f5a7b3ac0120cb5def9f479326ab imagemagick is no longer needed? diff --git a/zpresent.el b/zpresent.el --- a/zpresent.el +++ b/zpresent.el @@ -854,12 +854,13 @@ "Cache the image from LOCATION in zpresent-images." (unless (gethash location zpresent-images) (if (string-prefix-p "file:" location) - (zpresent--cache-image (create-image (expand-file-name (string-remove-prefix "file:" location)) 'imagemagick) + (zpresent--cache-image (create-image (expand-file-name (string-remove-prefix "file:" location))) location) (request location :parser #'buffer-string :success (cl-function (lambda (&key data &allow-other-keys) - (zpresent--cache-image (create-image (encode-coding-string data 'utf-8) 'imagemagick t) location))))))) + (zpresent--cache-image (create-image (encode-coding-string data 'utf-8) nil t) + location))))))) (defun zpresent--cache-image (image source-location) "Cache the IMAGE, which originated at SOURCE-LOCATION."