Variable: image-transform-resize

image-transform-resize is a buffer-local variable defined in image-mode.el.gz.

Documentation

The image resize operation.

Its value should be one of the following:
 - nil, meaning no resizing.
 - t, meaning to fit the image to the window height and width.
 - fit-height, meaning to fit the image to the window height.
 - fit-width, meaning to fit the image to the window width.
 - A number, which is a scale factor (the default size is 1).

Probably introduced at or before Emacs version 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/image-mode.el.gz
(defvar-local image-transform-resize nil
  "The image resize operation.
Its value should be one of the following:
 - nil, meaning no resizing.
 - t, meaning to fit the image to the window height and width.
 - `fit-height', meaning to fit the image to the window height.
 - `fit-width', meaning to fit the image to the window width.
 - A number, which is a scale factor (the default size is 1).")