Function: image-decrease-size
image-decrease-size is an interactive and byte-compiled function
defined in image.el.gz.
Signature
(image-decrease-size &optional N POSITION)
Documentation
Decrease the image size by a factor of N.
If N is 3, then the image size will be decreased by 30%. The default is 20%.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/image.el.gz
(defun image-decrease-size (&optional n position)
"Decrease the image size by a factor of N.
If N is 3, then the image size will be decreased by 30%. The
default is 20%."
(interactive "P")
;; Wait for a bit of idle-time before actually performing the change,
;; so as to batch together sequences of closely consecutive size changes.
;; `image--change-size' just changes one value in a plist. The actual
;; image resizing happens later during redisplay. So if those
;; consecutive calls happen without any redisplay between them,
;; the costly operation of image resizing should happen only once.
(run-with-idle-timer 0.3 nil
#'image--change-size
(if n
(- 1 (/ (prefix-numeric-value n) 10.0))
0.8)
position))