You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (Jira)" <ji...@apache.org> on 2023/02/03 16:05:00 UTC

[jira] [Comment Edited] (TIKA-2689) *.ai type (Adobe illustrator ) files are not detected correctly.

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

Tim Allison edited comment on TIKA-2689 at 2/3/23 4:04 PM:
-----------------------------------------------------------

Can we rely on the xmp and the namespace "illustrator"?

We'd still have to parse the document... :(

{noformat}
...xmlns:illustrator="http://ns.adobe.com/illustrator/1.0/"...
<illustrator:Type>Document</illustrator:Type>
{noformat}


was (Author: tallison@mitre.org):
Can we rely on the xmp and the namespace "illustrator"?

{noformat}
...xmlns:illustrator="http://ns.adobe.com/illustrator/1.0/"...
<illustrator:Type>Document</illustrator:Type>
{noformat}

> *.ai type (Adobe illustrator ) files are not detected correctly.
> ----------------------------------------------------------------
>
>                 Key: TIKA-2689
>                 URL: https://issues.apache.org/jira/browse/TIKA-2689
>             Project: Tika
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.16, 1.17, 1.18
>            Reporter: Amit Pandey
>            Priority: Major
>         Attachments: example.ai, screenshot-1.png
>
>
> There is in-consistency in detecting **ai* types files when using different overloaded detect method. When I am using _detect(String filename)_, it gives correct file type - "*application/illustrator*". If I use _detect(InputStream is, String filename)_ or _detect(File fileObj)_ -  it gives file type "*application/pdf*".
> Here is sample code I used.
>   [https://stackoverflow.com/questions/51359351/tika-detect-method-not-giving-same-exact-file-type|http://example.com/]
>  



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