Function: mm-image-fit-p

mm-image-fit-p is a byte-compiled function defined in mm-decode.el.gz.

Signature

(mm-image-fit-p HANDLE)

Documentation

Say whether the image in HANDLE will fit the current window.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/mm-decode.el.gz
(defun mm-image-fit-p (handle)
  "Say whether the image in HANDLE will fit the current window."
  (let ((image (mm-get-image handle)))
    (or (not image)
	(let* ((size (image-size image))
	       (w (car size))
	       (h (cdr size)))
	  (or mm-inline-large-images
	      (and (<= h (1- (window-height))) ; Don't include mode line.
		   (<= w (window-width))))))))