You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ni...@apache.org on 2019/11/18 15:03:08 UTC

[tika] branch master updated (f6a5749 -> 1bb1895)

This is an automated email from the ASF dual-hosted git repository.

nick pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git.


    from f6a5749  TIKA-2982 -- don't require 'DataSpaces' in ooxml-encrypted detection
     new 8cfacfe  Test HEIF file, generated with https://compare.rokka.io/_compare on testJPEG_GEO.jpg
     new efd071a  Test file uses the HEVC codec, so switch to the more specific extension
     new 0758598  Add mimetypes for the HEIF (High Efficiency Image File) format family - TIKA-2942
     new 433a8c1  HEIF detection unit test. When tooling improves, should ideally create another HEIF test file with another codec too
     new 1bb1895  Changelog update

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CHANGES.txt                                        |   3 +-
 .../org/apache/tika/mime/tika-mimetypes.xml        |  40 +++++++++++++++++++++
 .../java/org/apache/tika/mime/TestMimeTypes.java   |  12 +++++++
 .../test/resources/test-documents/testHEIF.heic    | Bin 0 -> 13706 bytes
 4 files changed, 54 insertions(+), 1 deletion(-)
 create mode 100644 tika-parsers/src/test/resources/test-documents/testHEIF.heic


[tika] 01/05: Test HEIF file, generated with https://compare.rokka.io/_compare on testJPEG_GEO.jpg

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git

commit 8cfacfeca35cf1308b51557c3552e9206ecf9070
Author: Nick Burch <ni...@gagravarr.org>
AuthorDate: Mon Nov 18 14:39:35 2019 +0000

    Test HEIF file, generated with https://compare.rokka.io/_compare on testJPEG_GEO.jpg
---
 .../src/test/resources/test-documents/testHEIF.heif     | Bin 0 -> 13706 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/tika-parsers/src/test/resources/test-documents/testHEIF.heif b/tika-parsers/src/test/resources/test-documents/testHEIF.heif
new file mode 100644
index 0000000..3d1893a
Binary files /dev/null and b/tika-parsers/src/test/resources/test-documents/testHEIF.heif differ


[tika] 05/05: Changelog update

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git

commit 1bb1895a30b722a9780122a6447598dd29e75ca7
Author: Nick Burch <ni...@gagravarr.org>
AuthorDate: Mon Nov 18 15:00:33 2019 +0000

    Changelog update
---
 CHANGES.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGES.txt b/CHANGES.txt
index 3b66d3b..17b401c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -16,7 +16,8 @@ Release 1.23
 
    * Add parser for XLIFF v1.2 files (TIKA-2975).
 
-   * Add mime type detection support for WebAssembly (TIKA-2894).
+   * Add mime type detection support for WebAssembly (TIKA-2894) and
+     HEIF / HEIC images (TIKA-2942).
 
    * Add an XLZ Parser (TIKA-2976).
 


[tika] 02/05: Test file uses the HEVC codec, so switch to the more specific extension

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git

commit efd071aa595d76d094f549f25db856229baace5d
Author: Nick Burch <ni...@gagravarr.org>
AuthorDate: Mon Nov 18 14:54:42 2019 +0000

    Test file uses the HEVC codec, so switch to the more specific extension
---
 .../test-documents/{testHEIF.heif => testHEIF.heic}         | Bin
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/tika-parsers/src/test/resources/test-documents/testHEIF.heif b/tika-parsers/src/test/resources/test-documents/testHEIF.heic
similarity index 100%
rename from tika-parsers/src/test/resources/test-documents/testHEIF.heif
rename to tika-parsers/src/test/resources/test-documents/testHEIF.heic


[tika] 04/05: HEIF detection unit test. When tooling improves, should ideally create another HEIF test file with another codec too

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git

commit 433a8c1625d302bf1a9d81f2ad1223df7bf83d31
Author: Nick Burch <ni...@gagravarr.org>
AuthorDate: Mon Nov 18 14:57:09 2019 +0000

    HEIF detection unit test. When tooling improves, should ideally create another HEIF test file with another codec too
---
 .../src/test/java/org/apache/tika/mime/TestMimeTypes.java    | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tika-parsers/src/test/java/org/apache/tika/mime/TestMimeTypes.java b/tika-parsers/src/test/java/org/apache/tika/mime/TestMimeTypes.java
index bdf7da1..d45d116 100644
--- a/tika-parsers/src/test/java/org/apache/tika/mime/TestMimeTypes.java
+++ b/tika-parsers/src/test/java/org/apache/tika/mime/TestMimeTypes.java
@@ -408,6 +408,18 @@ public class TestMimeTypes {
     }
 
     @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");
         assertTypeByData("image/jpeg", "testJPEG.jpg");


[tika] 03/05: Add mimetypes for the HEIF (High Efficiency Image File) format family - TIKA-2942

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git

commit 0758598bece92f97418f88d0c443e8d9cff7a7ee
Author: Nick Burch <ni...@gagravarr.org>
AuthorDate: Mon Nov 18 14:55:45 2019 +0000

    Add mimetypes for the HEIF (High Efficiency Image File) format family - TIKA-2942
---
 .../org/apache/tika/mime/tika-mimetypes.xml        | 40 ++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
index c5ad55d..6e967b6 100644
--- a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
+++ b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
@@ -5314,6 +5314,46 @@
     <glob pattern="*.gif"/>
   </mime-type>
 
+  <mime-type type="image/heif">
+    <_comment>HEIF - High Efficiency Image File</_comment>
+    <acronym>HEIF</acronym>
+    <tika:link>https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format</tika:link>
+    <magic priority="60">
+      <match value="ftypmif1" type="string" offset="4"/>
+    </magic>
+    <glob pattern="*.heif"/>
+    <sub-class-of type="video/quicktime" />
+  </mime-type>
+  <mime-type type="image/heif-sequence">
+    <_comment>HEIF Sequence - High Efficiency Image Sequence</_comment>
+    <magic priority="60">
+      <match value="ftypmsf1" type="string" offset="4"/>
+    </magic>
+    <sub-class-of type="video/quicktime" />
+  </mime-type>
+
+  <mime-type type="image/heic">
+    <alias   type="image/hevc"/>
+    <_comment>HEIF Image using HEVC Codec</_comment>
+    <acronym>HEIC</acronym>
+    <magic priority="60">
+      <match value="ftypheic" type="string" offset="4"/>
+      <match value="ftypheix" type="string" offset="4"/>
+    </magic>
+    <glob pattern="*.heic"/>
+    <sub-class-of type="image/heif" />
+  </mime-type>
+  <mime-type type="image/heic-sequence">
+    <alias   type="image/hevc-sequence"/>
+    <_comment>HEIF Sequence using HEVC Codec</_comment>
+    <acronym>HEVC</acronym>
+    <magic priority="60">
+      <match value="ftyphevc" type="string" offset="4"/>
+      <match value="ftyphevx" type="string" offset="4"/>
+    </magic>
+    <sub-class-of type="image/heif-sequence" />
+  </mime-type>
+
   <mime-type type="image/icns">
     <_comment>Apple Icon Image Format</_comment>
     <magic priority="50">