Function: image--get-imagemagick-and-warn

image--get-imagemagick-and-warn is a byte-compiled function defined in image.el.gz.

Signature

(image--get-imagemagick-and-warn &optional POSITION)

Source Code

;; Defined in /usr/src/emacs/lisp/image.el.gz
(defun image--get-imagemagick-and-warn (&optional position)
  (declare-function image-transforms-p "image.c" (&optional frame))
  (unless (or (fboundp 'imagemagick-types) (image-transforms-p))
    (error "Cannot rescale images on this terminal"))
  (let ((image (image--get-image position)))
    (image-flush image)
    (when (and (fboundp 'imagemagick-types)
               (not (image-transforms-p)))
      (plist-put (cdr image) :type 'imagemagick))
    image))