Expand description
Image processing utilities
Structs§
- Image
Data - Represents the data from an image file ready for LLM consumption
Functions§
- detect_
mime_ type_ from_ content_ type - Detects MIME type from Content-Type header
- detect_
mime_ type_ from_ data - Detects MIME type from file data (magic bytes)
- detect_
mime_ type_ from_ extension - Detects the MIME type based on file extension
- encode_
to_ base64 - Encodes binary data to base64
- has_
supported_ image_ extension - Validates that the image file path has a supported extension