tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-1554) Improve EMF file detection
Date Thu, 19 Mar 2015 06:03:40 GMT

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

ASF GitHub Bot commented on TIKA-1554:
--------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/tika/pull/34


> Improve EMF file detection
> --------------------------
>
>                 Key: TIKA-1554
>                 URL: https://issues.apache.org/jira/browse/TIKA-1554
>             Project: Tika
>          Issue Type: Bug
>          Components: detector
>    Affects Versions: 1.7
>            Reporter: Luis Filipe Nassif
>            Assignee: Chris A. Mattmann
>         Attachments: nonEmf.dat
>
>
> I am getting many files being incorrectly detected as application/x-emf. I think the
current magic is too common. According to MS documentation (https://msdn.microsoft.com/en-us/library/cc230635.aspx
and https://msdn.microsoft.com/en-us/library/dd240211.aspx), it can be improved to:
> {code}
> <mime-type type="application/x-emf">
>     <acronym>EMF</acronym>
>     <_comment>Extended Metafile</_comment>
>     <glob pattern="*.emf"/>
>     <magic priority="50">
>       <match value="0x01000000" type="string" offset="0">
>       	<match value=" EMF" type="string" offset="40"/>
>       </match>
>     </magic>
>   </mime-type>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message