{"record":{"id":"e7a416130e8b12cf","repo":"openai/codex","slug":"unsupported-image-mime","errorCode":null,"errorMessage":"unsupported image `{mime}`","messagePattern":"unsupported image `(.+?)`","errorType":"validation","errorClass":"ImageProcessingError","httpStatus":null,"severity":"error","filePath":"codex-rs/utils/image/src/error.rs","lineNumber":26,"sourceCode":"    #[error(\"failed to read image at {path}: {source}\")]\n    Read {\n        path: PathBuf,\n        #[source]\n        source: std::io::Error,\n    },\n    #[error(\"failed to decode image at {path}: {source}\")]\n    Decode {\n        path: PathBuf,\n        #[source]\n        source: image::ImageError,\n    },\n    #[error(\"failed to encode image as {format:?}: {source}\")]\n    Encode {\n        format: ImageFormat,\n        #[source]\n        source: image::ImageError,\n    },\n    #[error(\"unsupported image `{mime}`\")]\n    UnsupportedImageFormat { mime: String },\n    #[error(\"invalid image data URL: {reason}\")]\n    InvalidDataUrl { reason: String },\n    #[error(\"image {representation} is too large ({size} bytes; max {max} bytes)\")]\n    ImageTooLarge {\n        representation: &'static str,\n        size: usize,\n        max: usize,\n    },\n}\n\nimpl ImageProcessingError {\n    pub fn decode_error(path: &std::path::Path, source: image::ImageError) -> Self {\n        if matches!(source, ImageError::Decoding(_)) {\n            return ImageProcessingError::Decode {\n                path: path.to_path_buf(),\n                source,\n            };","sourceCodeStart":8,"sourceCodeEnd":44,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/utils/image/src/error.rs#L8-L44","documentation":"Error \"unsupported image `{mime}`\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/utils/image/src/error.rs:26 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}