+2003-04-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
+
+ * gnus-fun.el (gnus-face-from-file, gnus-convert-png-to-face):
+ Max length of header is 726, not 740. From Gaute B Strokkenes
+ <gs234@cam.ac.uk>.
+
2003-04-20 Jesper Harder <harder@ifa.au.dk>
* nndb.el, mml1991.el: Fix license template.
(format gnus-convert-image-to-face-command
(shell-quote-argument (expand-file-name file))
quant)))
- (if (> (length attempt) 740)
+ (if (> (length attempt) 726)
(progn
(setq quant (- quant 2))
(message "Length %d; trying quant %d"
(defun gnus-convert-png-to-face (file)
"Convert FILE to a Face.
FILE should be a PNG file that's 48x48 and smaller than or equal to
-740 bytes."
+726 bytes."
(mm-with-unibyte-buffer
(insert-file-contents file)
- (when (> (buffer-size) 740)
+ (when (> (buffer-size) 726)
(error "The file is %d bytes long, which is too long"
(buffer-size)))
(gnus-face-encode)))