(shr-rescale-image): Display all GIF images as animated images.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 2 Jan 2011 20:19:02 +0000 (21:19 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 2 Jan 2011 20:19:02 +0000 (21:19 +0100)
lisp/ChangeLog
lisp/shr.el

index f3ca14b..7e5abde 100644 (file)
@@ -1,5 +1,7 @@
 2011-01-02  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * shr.el (shr-rescale-image): Display all GIF images as animated images.
+
        * nnimap.el (nnimap-login): Refactored out into own function, and
        implement CRAM-MD5.
        (nnimap-wait-for-line): Refactored out.
index 0ed73cd..6e681d6 100644 (file)
@@ -507,6 +507,9 @@ redirects somewhere else."
                     (create-image data 'imagemagick t
                                   :width window-width)
                     image)))
+      (when (and (fboundp 'create-animated-image)
+                (eq (image-type data nil t) 'gif))
+       (setq image (create-animated-image data 'gif t)))
       image)))
 
 ;; url-cache-extract autoloads url-cache.