openai/codex · error · ImageProcessingError
failed to read image at
Error message
failed to read image at {path}: {source} What it means
ImageProcessingError::Read: an I/O error occurred while reading the image file from disk at `path`. The io::Error source gives the errno; subsequent decode/encode stages are never reached. Distinct from Decode (invalid image data) and Encode failures.
Solutions
- Verify the image file exists at the given path
- Fix read permissions on the file or its directory
- Retry the operation if the failure was transient (e.g. network mount)
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at codex-rs/utils/image/src/error.rs:8 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/e61c75471e2c19a8.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/utils/image/src/error.rs:8
use image::ImageError;
use image::ImageFormat;
use std::path::PathBuf;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum ImageProcessingError {
#[error("failed to read image at {path}: {source}")]
Read {
path: PathBuf,
#[source]
source: std::io::Error,
},
#[error("failed to decode image at {path}: {source}")]
Decode {
path: PathBuf,
#[source]
source: image::ImageError,
},
#[error("failed to encode image as {format:?}: {source}")]
Encode {
format: ImageFormat,
#[source]
source: image::ImageError,
},
#[error("unsupported image `{mime}`")]View on GitHub (pinned to 339751715c)