Skip to main content

Crate codex_utils_image

Crate codex_utils_image 

Source

Re-exports§

pub use crate::error::ImageProcessingError;

Modules§

error

Structs§

EncodedImage
PromptImageResizeLimits

Enums§

PromptImageMode

Constants§

MAX_DIMENSION
Maximum width or height used when resizing images before uploading.
MAX_PROMPT_IMAGE_INPUT_BYTES
Maximum accepted byte length for prompt image input representations.
PROMPT_IMAGE_PATCH_SIZE

Functions§

data_url_from_bytes
Wraps image bytes in a data URL without decoding or validating them.
load_data_url_for_prompt
load_for_prompt_bytes