Function: eca-chat--image-fallback-string
eca-chat--image-fallback-string is a natively compiled function
defined in eca-chat-image.el.
Signature
(eca-chat--image-fallback-string IMAGE-CONTENT)
Documentation
Return the textual fallback string for IMAGE-CONTENT.
Used on TTY frames, for unsupported image formats, and inside subagent expandable blocks where overlays cannot ride along.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-image.el
(defun eca-chat--image-fallback-string (image-content)
"Return the textual fallback string for IMAGE-CONTENT.
Used on TTY frames, for unsupported image formats, and inside
subagent expandable blocks where overlays cannot ride along."
(let* ((media-type (plist-get image-content :mediaType))
(b64 (plist-get image-content :base64))
(bytes (if b64 (length (base64-decode-string b64)) 0)))
(concat "\n"
(propertize (format "[Image: %s, %d bytes]"
(or media-type "unknown") bytes)
'font-lock-face 'eca-chat-system-messages-face)
"\n")))