HEIF detection unit test. When tooling improves, should ideally create another HEIF test file with another codec too
@@ -407,6 +407,18 @@ public class TestMimeTypes {
assertTypeByData("application/fits", "testFITS_ShorterHeader.fits");
}
+ @Test
+ public void testHeifDetection() throws Exception {
+ // HEIF image using the HEVC Codec == HEIC
+ // created using https://compare.rokka.io/_compare on testJPEG_GEO.jpg
+ assertType("image/heic", "testHEIF.heic");
+ assertTypeByData("image/heic", "testHEIF.heic");
+ assertTypeByName("image/heic", "testHEIF.heic");
+
+ // TODO Create a HEIF using another codec, to test .heif data
+ assertTypeByName("image/heif", "testHEIF.heif");
+ }
+
@Test
public void testJpegDetection() throws Exception {
assertType("image/jpeg", "testJPEG.jpg");
