diff --git a/src/image_io/load.rs b/src/image_io/load.rs index 0198762..a1a6e08 100644 --- a/src/image_io/load.rs +++ b/src/image_io/load.rs @@ -219,6 +219,7 @@ pub fn load_jxl(bytes: &[u8]) -> Option> { pub fn load_heif(bytes: &[u8]) -> Option> { #[cfg(feature = "heif")] { + use image::RgbaImage; use libheif_rs::{ColorSpace, DecodingOptions, HeifContext, LibHeif, RgbChroma}; let lib_heif = LibHeif::new(); let ctx = HeifContext::read_from_bytes(bytes).ok()?; diff --git a/src/util/extensions.rs b/src/util/extensions.rs index 86dc04d..e0b9dc0 100644 --- a/src/util/extensions.rs +++ b/src/util/extensions.rs @@ -7,7 +7,7 @@ pub static HEIF: Lazy<&[&'static str]> = Lazy::new(|| &["heif", "heic"]); pub static RASTER: Lazy<&[&'static str]> = Lazy::new(|| { &[ "png", "jpg", "jpeg", "jpe", "jif", "jfif", "gif", "bmp", "ico", "tiff", "webp", "avif", - "pnm", "pbm", "pgm", "ppm", "pam", "dds", "tga", "ff", "farbfeld", "exr", "qoi", + "pnm", "pbm", "pgm", "ppm", "pam", "dds", "tga", "ff", "farbfeld", "exr", "qoi", "hdr", ] });