Variable: shr-max-inline-image-size

shr-max-inline-image-size is a customizable variable defined in shr.el.gz.

Value

nil

Documentation

If non-nil, determines when the images can be displayed inline.

If nil, images are never displayed inline.

It non-nil, it should be cons (WIDTH . HEIGHT).

WIDTH can be an integer which is interpreted as number of pixels. If the width of an image exceeds this amount, the image is displayed on a separate line. WIDTH can also be floating point number, in which case the image is displayed inline if it occupies less than this fraction of window width.

HEIGHT can be also be an integer or a floating point number. If it is an integer and the pixel height of an image exceeds it, the image image is displayed on a separate line. If it is a float number , the limit is interpreted as a multiple of the height of default font.

This variable was added, or its default value changed, in Emacs 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/net/shr.el.gz
(defcustom shr-max-inline-image-size nil
  "If non-nil, determines when the images can be displayed inline.
If nil, images are never displayed inline.

It non-nil, it should be cons (WIDTH . HEIGHT).

WIDTH can be an integer which is interpreted as number of pixels.  If the width
of an image exceeds this amount, the image is displayed on a separate line.
WIDTH can also be floating point number, in which case the image is displayed
inline if it occupies less than this fraction of window width.

HEIGHT can be also be an integer or a floating point number.  If it is an
integer and the pixel height of an image exceeds it, the image image is
displayed on a separate line.  If it is a float number , the limit is
interpreted as a multiple of the height of default font."
  :version "30.1"
  :type '(choice (const nil) (cons number number)))