Variable: shr-image-zoom-level-alist

shr-image-zoom-level-alist is a variable defined in shr.el.gz.

Value

((fit "Zoom to fit" shr-rescale-image)
 (original "Zoom to original size" shr--image-zoom-original-size)
 (image "Zoom to full image size" shr--image-zoom-image-size)
 (fill-height "Zoom to fill window height" shr--image-zoom-fill-height))

Documentation

An alist of possible image zoom levels.

Each element is of the form (SYMBOL DESC FUNCTION). SYMBOL is the symbol identifying this level, as used by shr-image-zoom-levels (which see). DESC is a string describing the level.

FUNCTION is a function that returns a properly-zoomed image; it takes the following arguments:

* DATA: The image data in string form.
* CONTENT-TYPE: The content-type of the image, if any.
* WIDTH: The width as specified by the HTML "width" attribute, if any.
* HEIGHT: The height as specified by the HTML "height" attribute, if
  any.

Source Code

;; Defined in /usr/src/emacs/lisp/net/shr.el.gz
(defvar shr-image-zoom-level-alist
  `((fit         "Zoom to fit"                shr-rescale-image)
    (original    "Zoom to original size"      shr--image-zoom-original-size)
    (image       "Zoom to full image size"    shr--image-zoom-image-size)
    (fill-height "Zoom to fill window height" shr--image-zoom-fill-height))
  "An alist of possible image zoom levels.
Each element is of the form (SYMBOL DESC FUNCTION).  SYMBOL is the
symbol identifying this level, as used by `shr-image-zoom-levels' (which
see).  DESC is a string describing the level.

FUNCTION is a function that returns a properly-zoomed image; it takes
the following arguments:

* DATA: The image data in string form.
* CONTENT-TYPE: The content-type of the image, if any.
* WIDTH: The width as specified by the HTML \"width\" attribute, if any.
* HEIGHT: The height as specified by the HTML \"height\" attribute, if
  any.")