Skip to content

Commit 1ef78eb

Browse files
committedJul 19, 2024
Handle heix (iOS 18)
1 parent 97a4bd3 commit 1ef78eb

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed
 

‎src/matchers/image.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pub fn is_heif(buf: &[u8]) -> bool {
107107
}
108108

109109
if let Some((major, _minor, compatible)) = get_ftyp(buf) {
110-
if major == b"heic" {
110+
if major == b"heic" || major == b"heix" {
111111
return true;
112112
}
113113

‎testdata/sample2.heic

423 KB
Binary file not shown.

‎tests/image.rs

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ test_format!(Image, "image/vnd.microsoft.icon", "ico", ico, "sample.ico");
2424

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

27+
test_format!(Image, "image/heif", "heif", heif2, "sample2.heic");
28+
2729
test_format!(Image, "image/avif", "avif", avif, "sample.avif");
2830

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

0 commit comments

Comments
 (0)
Please sign in to comment.