Function: shr--image-zoom-fill-height
shr--image-zoom-fill-height is a byte-compiled function defined in
shr.el.gz.
Signature
(shr--image-zoom-fill-height DATA CONTENT-TYPE WIDTH HEIGHT)
Source Code
;; Defined in /usr/src/emacs/lisp/net/shr.el.gz
(defun shr--image-zoom-fill-height (data content-type _width _height)
(let* ((edges (window-inside-pixel-edges
(get-buffer-window (current-buffer))))
(height (truncate (* shr-max-image-proportion
(- (nth 3 edges) (nth 1 edges))))))
(create-image data (shr--image-type) t :ascent shr-image-ascent
:height height :format content-type)))