//! Image I/O utilities (feature-gated: `image-io`).
//!
//! Provides convenience functions for loading grayscale images from disk.
use Path;
use ;
use OwnedImage;
/// Load a grayscale image from a file path.
///
/// Supports any format that the [`image`] crate can decode (PNG, JPEG, etc.).
/// The image is converted to 8-bit grayscale (`Luma8`) before wrapping in
/// an [`OwnedImage<u8>`].
///
/// # Errors
///
/// Returns [`RadSymError::ImageIo`] if the file cannot be read or decoded.