projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b224786
)
Treat jpx files as jp2.
author
Michael Ang
<mang@archive.org>
Wed, 31 Aug 2011 21:51:25 +0000
(21:51 +0000)
committer
Michael Ang
<mang@archive.org>
Wed, 31 Aug 2011 21:51:25 +0000
(21:51 +0000)
BookReaderIA/datanode/BookReaderImages.inc.php
patch
|
blob
|
history
diff --git
a/BookReaderIA/datanode/BookReaderImages.inc.php
b/BookReaderIA/datanode/BookReaderImages.inc.php
index
731275e
..
6342604
100644
(file)
--- a/
BookReaderIA/datanode/BookReaderImages.inc.php
+++ b/
BookReaderIA/datanode/BookReaderImages.inc.php
@@
-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
+?>