Skip to main content

Module image

Module image 

Source
Expand description

Image input handling for CLI/TUI attachment (task 3.4).

Structs§

ImageLoadError
Error from loading an image file.

Constants§

DEFAULT_MAX_IMAGE_BYTES
Default maximum image attachment size: 20 MiB.

Functions§

detect_media_type
Detect media type from file extension.
load_image
Load an image file and return an InputContent::Image with bytes source.
load_image_with_limit
Load an image file with an explicit maximum byte limit.