Hello,
I send you simple patch that add detection of PICT "Apple Macintosh
QuickDraw/PICT Format". I use magick pattern from ImageMagick source code.
I can't send you "freely available" sample file to test, but I found
sample picture on internet :
http://www.kingsgranthoa.com/images/kgbannerbrg.pict
http://www.kingsgranthoa.com/images/kgl.pict
Do I have to create an issue in Jira ?
Best regards,
Jeremie
--
Jérémie Lesage - Jeci SARL
Index: tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
===================================================================
--- tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml (révision 1446180)
+++ tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml (copie de travail)
@@ -4090,8 +4090,13 @@
<glob pattern="*.pcx"/>
</mime-type>
<mime-type type="image/x-pict">
+ <_comment>Apple Macintosh QuickDraw/PICT Format</_comment>
+ <magic priority="50">
+ <match value="0x001102FF0C00" type="string" offset="522"/>
+ </magic>
<glob pattern="*.pic"/>
<glob pattern="*.pct"/>
+ <glob pattern="*.pict"/>
</mime-type>
<mime-type type="image/x-portable-anymap">