Treat jpx files as jp2.
[bookreader.git] / 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
+?>