{"record":{"id":"256b069d8586ff79","repo":"openai/codex","slug":"failed-to-decode-image-at-path-source","errorCode":null,"errorMessage":"failed to decode image at {path}: {source}","messagePattern":"failed to decode image at (.+?): (.+?)","errorType":"exception","errorClass":"ImageProcessingError","httpStatus":null,"severity":"error","filePath":"codex-rs/utils/image/src/error.rs","lineNumber":14,"sourceCode":"use image::ImageError;\nuse image::ImageFormat;\nuse std::path::PathBuf;\nuse thiserror::Error;\n\n#[derive(Debug, Error)]\npub enum ImageProcessingError {\n    #[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,","sourceCodeStart":1,"sourceCodeEnd":32,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/utils/image/src/error.rs#L1-L32","documentation":"Error \"failed to decode image at {path}: {source}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/utils/image/src/error.rs:14 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"}