Treat jpx files as jp2.
authorMichael Ang <mang@archive.org>
Wed, 31 Aug 2011 21:51:25 +0000 (21:51 +0000)
committerMichael Ang <mang@archive.org>
Wed, 31 Aug 2011 21:51:25 +0000 (21:51 +0000)
BookReaderIA/datanode/BookReaderImages.inc.php

index 731275e..6342604 100644 (file)
@@ -594,6 +594,11 @@ class BookReaderImages
         $width = intval($tags["ImageWidth"]);
         $height = intval($tags["ImageHeight"]);
         $type = strtolower($tags["FileType"]);
+
+        // Treat jpx as jp2
+        if (strcmp($type,'jpx') == 0) {
+            $type = 'jp2';
+        }
         
         switch ($type) {
             case "jp2":
@@ -1061,4 +1066,4 @@ class BookReaderImages
     
 }
 
-?>
\ No newline at end of file
+?>