Variable: eca-chat-image-max-width

eca-chat-image-max-width is a customizable variable defined in eca-chat-image.el.

Value

fit-window

Documentation

Maximum width for inline images rendered in chat.

Applied via the :max-width property of create-image so the image is scaled down (preserving aspect ratio) when larger than this value. The value can be:
- fit-window (default) — scale to the chat window body width in
  pixels, capped at eca-chat-image-window-fit-cap so very wide
  frames don't produce huge images.
- An integer — a fixed pixel cap.
- nil — no width constraint (image's native pixel width).

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-image.el
;;;; Customization

(defcustom eca-chat-image-max-width 'fit-window
  "Maximum width for inline images rendered in chat.
Applied via the `:max-width' property of `create-image' so the image
is scaled down (preserving aspect ratio) when larger than this value.
The value can be:
- `fit-window' (default) — scale to the chat window body width in
  pixels, capped at `eca-chat-image-window-fit-cap' so very wide
  frames don't produce huge images.
- An integer — a fixed pixel cap.
- nil — no width constraint (image's native pixel width)."
  :type '(choice (const :tag "Fit chat window (default)" fit-window)
                 (const :tag "Unconstrained" nil)
                 (integer :tag "Pixels"))
  :group 'eca)