diff --git a/Cargo.toml b/Cargo.toml index da5585378e..c8d9b72805 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -87,6 +87,7 @@ webp = ["dep:image-webp"] # Other features rayon = ["dep:rayon"] # Enables multi-threading nasm = ["ravif?/asm"] # Enables use of nasm by rav1e (requires nasm to be installed) +color_quant = ["dep:color_quant"] # Enables color quantization avif-native = ["dep:mp4parse", "dep:dcv-color-primitives", "dep:dav1d"] # Enable native dependency libdav1d benchmarks = [] # Build some inline benchmarks. Useful only during development (requires nightly Rust) diff --git a/src/image.rs b/src/image.rs index 2f3cca4bdd..af27382f42 100644 --- a/src/image.rs +++ b/src/image.rs @@ -315,7 +315,7 @@ impl ImageFormat { ImageFormat::Bmp => cfg!(feature = "bmp"), ImageFormat::Ico => cfg!(feature = "ico"), ImageFormat::Hdr => cfg!(feature = "hdr"), - ImageFormat::OpenExr => cfg!(feature = "openexr"), + ImageFormat::OpenExr => cfg!(feature = "exr"), ImageFormat::Pnm => cfg!(feature = "pnm"), ImageFormat::Farbfeld => cfg!(feature = "ff"), ImageFormat::Avif => cfg!(feature = "avif"), @@ -339,7 +339,7 @@ impl ImageFormat { ImageFormat::Farbfeld => cfg!(feature = "ff"), ImageFormat::Avif => cfg!(feature = "avif"), ImageFormat::WebP => cfg!(feature = "webp"), - ImageFormat::OpenExr => cfg!(feature = "openexr"), + ImageFormat::OpenExr => cfg!(feature = "exr"), ImageFormat::Qoi => cfg!(feature = "qoi"), ImageFormat::Dds => false, ImageFormat::Hdr => false,