[ 
https://issues.apache.org/jira/browse/TIKA-4509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18028727#comment-18028727
 ] 

Tim Allison commented on TIKA-4509:
-----------------------------------

My proposal would be to add this to tika-mimetypes.xml:
{noformat}
<mime-type type="image/avif-sequence">
  <_comment>AV1 Image File with animation</_comment>
  <acronym>AVIF</acronym>
  
<tika:link>https://en.wikipedia.org/wiki/AV1#AV1_Image_File_Format_(AVIF)</tika:link>
  <magic priority="60">
    <match value="ftypavis" type="string" offset="4"/>
  </magic>
  <sub-class-of type="image/avif" />
</mime-type> {noformat}

> AVIF animation detected as video/quicktime
> ------------------------------------------
>
>                 Key: TIKA-4509
>                 URL: https://issues.apache.org/jira/browse/TIKA-4509
>             Project: Tika
>          Issue Type: Bug
>    Affects Versions: 3.2.3
>         Environment: Java version:
> {code:java}
> openjdk version "24.0.1" 2025-04-15
> OpenJDK Runtime Environment Temurin-24.0.1+9 (build 24.0.1+9)
> OpenJDK 64-Bit Server VM Temurin-24.0.1+9 (build 24.0.1+9, mixed mode, 
> sharing) {code}
> macOS 15.6.1
>            Reporter: Gotson
>            Priority: Major
>         Attachments: animation2.avif
>
>
> Hi,
> it seems the Tika detector is returning {{video/quicktime}} for animated AVIF 
> images.
> This is the output using Tika App:
>  
> {code:java}
> Content-Length: 6848
> Content-Type: video/quicktime
> X-TIKA:EXCEPTION:warn: Box size too small.
> X-TIKA:EXCEPTION:warn: Unable to skip. Requested 1751411818 bytes but only 
> 6780 remained.
> X-TIKA:Parsed-By: org.apache.tika.parser.DefaultParser
> X-TIKA:Parsed-By: org.apache.tika.parser.mp4.MP4Parser
> X-TIKA:Parsed-By-Full-Set: org.apache.tika.parser.DefaultParser
> X-TIKA:Parsed-By-Full-Set: org.apache.tika.parser.mp4.MP4Parser
> X-TIKA:Parsed-By-Full-Set: org.apache.tika.parser.EmptyParser
> X-TIKA:digest:MD5: e2da1cfa3a1e34a70ea43ad70fa8b58f
> X-TIKA:digest:SHA256: 
> b1e67d07a042376be37147051b3440ba1a545e433873a2a055dc894736411ec1
> resourceName: animation2.avif {code}
>  
> I would expect it to return {{image/avif}} instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to