Function: newsticker--image-read
newsticker--image-read is a byte-compiled function defined in
newst-reader.el.gz.
Signature
(newsticker--image-read FEED-NAME-SYMBOL DISABLED &optional MAX-HEIGHT)
Documentation
Read the cached image for FEED-NAME-SYMBOL from disk.
If DISABLED is non-nil the image will be converted to a disabled look
(unless newsticker-enable-logo-manipulations is not t).
Optional argument MAX-HEIGHT specifies the maximal image height.
Return the image.
Source Code
;; Defined in /usr/src/emacs/lisp/net/newst-reader.el.gz
(defun newsticker--image-read (feed-name-symbol disabled &optional max-height)
"Read the cached image for FEED-NAME-SYMBOL from disk.
If DISABLED is non-nil the image will be converted to a disabled look
\(unless `newsticker-enable-logo-manipulations' is not t).
Optional argument MAX-HEIGHT specifies the maximal image height.
Return the image."
(let ((image-name (concat (newsticker--images-dir)
(symbol-name feed-name-symbol))))
(when (file-exists-p image-name)
(condition-case error-data
(create-image
image-name
(and (fboundp 'imagemagick-types)
(imagemagick-types)
'imagemagick)
nil
:conversion (and newsticker-enable-logo-manipulations
disabled
'disabled)
:mask (and newsticker-enable-logo-manipulations
'heuristic)
:ascent 100
:max-height max-height)
(error
(message "Error: cannot create image for %s: %s"
feed-name-symbol error-data))))))