Variable: shr-sliced-image-height

shr-sliced-image-height is a customizable variable defined in shr.el.gz.

Value

0.9

Documentation

How tall images can be before slicing in relation to the window they're in.

A value of 0.7 means that images are allowed to take up 70% of the height of the window before being sliced by insert-sliced-image. If nil, never slice images.

Sliced images allow for more intuitive scrolling up/down by letting you scroll past each slice, instead of jumping past the entire image. Alternately, you can use pixel-scroll-precision-mode(var)/pixel-scroll-precision-mode(fun) to scroll pixel-wise past images, in which case you can set this option to nil.

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

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/net/shr.el.gz
(defcustom shr-sliced-image-height 0.9
  "How tall images can be before slicing in relation to the window they're in.
A value of 0.7 means that images are allowed to take up 70% of the
height of the window before being sliced by `insert-sliced-image'.  If
nil, never slice images.

Sliced images allow for more intuitive scrolling up/down by letting you
scroll past each slice, instead of jumping past the entire image.
Alternately, you can use `pixel-scroll-precision-mode' to scroll
pixel-wise past images, in which case you can set this option to nil."
  :version "31.1"
  :type '(choice (const :tag "Never slice images")
                 float))