aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/image.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/image.el b/lisp/image.el
index 08df7d4aa1a..272cee53e4f 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -1013,7 +1013,11 @@ default is 20%."
1013 (interactive) 1013 (interactive)
1014 (let ((image (image--get-imagemagick-and-warn))) 1014 (let ((image (image--get-imagemagick-and-warn)))
1015 (plist-put (cdr image) :rotation 1015 (plist-put (cdr image) :rotation
1016 (float (+ (or (plist-get (cdr image) :rotation) 0) 90))))) 1016 (float (mod (+ (or (plist-get (cdr image) :rotation) 0) 90)
1017 ;; We don't want to exceed 360 degrees
1018 ;; rotation, because it's not seen as valid
1019 ;; in exif data.
1020 360)))))
1017 1021
1018(defun image-save () 1022(defun image-save ()
1019 "Save the image under point." 1023 "Save the image under point."