Skip to content

Commit

Permalink
add hdr to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kl4rry committed May 12, 2024
1 parent a5842a6 commit 9b4fb61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/image_io/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ pub fn load_jxl(bytes: &[u8]) -> Option<Vec<Image>> {
pub fn load_heif(bytes: &[u8]) -> Option<Vec<Image>> {
#[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()?;
Expand Down
2 changes: 1 addition & 1 deletion src/util/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
});

Expand Down

0 comments on commit 9b4fb61

Please sign in to comment.