load_image 3.3.2

Load PNG or JPEG with color profile support
Documentation
/// File type of the image
#[derive(Debug, Eq, PartialEq, Copy, Clone)]
#[cfg_attr(any(feature = "avif", feature = "webp"), non_exhaustive)]
pub enum Format {
    Unknown,
    Jpeg,
    Png,
    #[cfg(feature = "avif")]
    Avif,
    #[cfg(feature = "webp")]
    WebP,
}

impl Default for Format {
    #[inline(always)]
    fn default() -> Self {
        Self::Unknown
    }
}