Add kludge to avoid displaying 30x30 gif images, which makes Emacs shake
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 29 Aug 2010 15:43:44 +0000 (17:43 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 29 Aug 2010 15:43:44 +0000 (17:43 +0200)
lisp/gnus-html.el

index c32f8d7..c8aec16 100644 (file)
 (defun gnus-html-put-image (file point)
   (let ((image (ignore-errors
                 (create-image file))))
-    (if image
+    (if (and image
+            ;; Kludge to avoid displaying 30x30 gif images, which
+            ;; seems to be a signal of a broken image.
+            (not (and (eq (getf (cdr image) :type) 'gif)
+                      (= (car (image-size image t)) 30))))
        (progn
          (put-image image point)
          t)