Skip to content

Commit

Permalink
Merge pull request #100 from MercuryTechnologies/heix-support
Browse files Browse the repository at this point in the history
Add support for heix (iOS 18)
  • Loading branch information
bojand authored Feb 2, 2025
2 parents 66c1890 + 1ef78eb commit bbd3ba2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/matchers/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub fn is_heif(buf: &[u8]) -> bool {
}

if let Some((major, _minor, compatible)) = get_ftyp(buf) {
if major == b"heic" {
if major == b"heic" || major == b"heix" {
return true;
}

Expand Down
Binary file added testdata/sample2.heic
Binary file not shown.
2 changes: 2 additions & 0 deletions tests/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ test_format!(Image, "image/vnd.microsoft.icon", "ico", ico, "sample.ico");

test_format!(Image, "image/heif", "heif", heif, "sample.heic");

test_format!(Image, "image/heif", "heif", heif2, "sample2.heic");

test_format!(Image, "image/avif", "avif", avif, "sample.avif");

test_format!(Image, "image/jxl", "jxl", jxl, "spline_on_first_frame.jxl");
Expand Down

0 comments on commit bbd3ba2

Please sign in to comment.