You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ju...@apache.org on 2009/02/03 21:33:43 UTC
svn commit: r740424 -
/lucene/tika/trunk/src/main/resources/mime/tika-mimetypes.xml
Author: jukka
Date: Tue Feb 3 20:33:42 2009
New Revision: 740424
URL: http://svn.apache.org/viewvc?rev=740424&view=rev
Log:
TIKA-192: Add glob and magic patterns for image types
Improved JPEG type information.
Modified:
lucene/tika/trunk/src/main/resources/mime/tika-mimetypes.xml
Modified: lucene/tika/trunk/src/main/resources/mime/tika-mimetypes.xml
URL: http://svn.apache.org/viewvc/lucene/tika/trunk/src/main/resources/mime/tika-mimetypes.xml?rev=740424&r1=740423&r2=740424&view=diff
==============================================================================
--- lucene/tika/trunk/src/main/resources/mime/tika-mimetypes.xml (original)
+++ lucene/tika/trunk/src/main/resources/mime/tika-mimetypes.xml Tue Feb 3 20:33:42 2009
@@ -776,9 +776,16 @@
<mime-type type="image/jpeg">
<magic priority="50">
- <match value="0xffd8" type="big16" offset="0" />
+ <!-- FFD8 is the SOI (Start Of Image) marker. -->
+ <!-- It is followed by another marker that starts with FF. -->
+ <match value="0xffd8ff" type="string" offset="0" />
</magic>
<glob pattern="*.jpg" />
+ <glob pattern="*.jpeg" />
+ <glob pattern="*.jpe" />
+ <glob pattern="*.jif" />
+ <glob pattern="*.jfif" />
+ <glob pattern="*.jfi" />
</mime-type>
<mime-type type="image/png">