The old name is an obsolete alias to the new one.
+++
-*** Emacs can be compiled with ImageMagick support.
-This feature is not available for the Nextstep or MS ports.
+*** Image mode can view any image type that ImageMagick supports.
+This requires Emacs to be built with ImageMagick support.
Then the function `imagemagick-types' returns a list of image file
extensions that your installation of ImageMagick supports. The
function `imagemagick-register-types' enables ImageMagick support for
these image types, minus those listed in `imagemagick-types-inhibit'.
Visiting one of these file types will then use Image mode.
+---
+*** New commands to resize and rotate images in Image mode.
+These require Emacs to be built with ImageMagick support.
+image-transform-fit-to-height, image-transform-fit-to-width,
+image-transform-set-rotation, image-transform-set-scale.
+
** XML and HTML parsing
If Emacs is compiled with libxml2 support, there are two new functions:
`libxml-parse-html-region' (which parses "real world" HTML) and
(image-toggle-display))))
\f
-(defvar image-transform-minor-mode-map
- (let ((map (make-sparse-keymap)))
- ;; (define-key map [(control ?+)] 'image-scale-in)
- ;; (define-key map [(control ?-)] 'image-scale-out)
- ;; (define-key map [(control ?=)] 'image-scale-none)
- ;; (define-key map "c f h" 'image-scale-fit-height)
- ;; (define-key map "c ]" 'image-rotate-right)
- map)
- "Minor mode keymap `image-transform-mode'.")
-
-(define-minor-mode image-transform-mode
- "Minor mode for scaling and rotating images.
-With a prefix argument ARG, enable the mode if ARG is positive,
-and disable it otherwise. If called from Lisp, enable the mode
-if ARG is omitted or nil. This minor mode requires Emacs to have
-been compiled with ImageMagick support."
- nil "image-transform" image-transform-minor-mode-map)
-
+;; Not yet implemented.
+;;; (defvar image-transform-minor-mode-map
+;;; (let ((map (make-sparse-keymap)))
+;;; ;; (define-key map [(control ?+)] 'image-scale-in)
+;;; ;; (define-key map [(control ?-)] 'image-scale-out)
+;;; ;; (define-key map [(control ?=)] 'image-scale-none)
+;;; ;; (define-key map "c f h" 'image-scale-fit-height)
+;;; ;; (define-key map "c ]" 'image-rotate-right)
+;;; map)
+;;; "Minor mode keymap `image-transform-mode'.")
+;;;
+;;; (define-minor-mode image-transform-mode
+;;; "Minor mode for scaling and rotating images.
+;;; With a prefix argument ARG, enable the mode if ARG is positive,
+;;; and disable it otherwise. If called from Lisp, enable the mode
+;;; if ARG is omitted or nil. This minor mode requires Emacs to have
+;;; been compiled with ImageMagick support."
+;;; nil "image-transform" image-transform-minor-mode-map)
+
+
+;; FIXME this doesn't seem mature yet. Document in manual when it is.
(defvar image-transform-resize nil
"The image resize operation.
Its value should be one of the following:
,@(if (not (equal 0.0 image-transform-rotation))
(list :rotation image-transform-rotation))))))
+;; FIXME 2 works, but eg 1.9 or 0.5 don't?
(defun image-transform-set-scale (scale)
"Prompt for a number, and resize the current image by that amount.
This command has no effect unless Emacs is compiled with