Mercurial > hg > digilib
comparison doc/src/site/markdown/java-settings.md @ 1416:3e2f71bafcfb
add new codec options to doc.
author | robcast |
---|---|
date | Thu, 22 Oct 2015 16:42:30 +0200 |
parents | 7a2de95a7b8e |
children | e6ad329cfac8 |
comparison
equal
deleted
inserted
replaced
1415:7247c046d9dc | 1416:3e2f71bafcfb |
---|---|
35 availability of the TIFF image format under "Supported image types" on the | 35 availability of the TIFF image format under "Supported image types" on the |
36 [`/server/dlConfig.jsp`](http://localhost:8080/digilib/server/dlConfig.jsp) | 36 [`/server/dlConfig.jsp`](http://localhost:8080/digilib/server/dlConfig.jsp) |
37 status page. | 37 status page. |
38 | 38 |
39 Sometimes there are memory issues. Newer versions of Tomcat refuse to load | 39 Sometimes there are memory issues. Newer versions of Tomcat refuse to load |
40 the libraries and I found that in some cases digilib stopped reading TIFF files | 40 the libraries (see JREMemoryLeakPreventionListener) and I found that in some |
41 cases digilib stopped reading TIFF files | |
41 after a period of running. In these cases it helped to install the JAI files in | 42 after a period of running. In these cases it helped to install the JAI files in |
42 Tomcats `lib/` directory or globally in the local Java JDK | 43 Tomcats `lib/` directory or globally in the local Java JDK |
43 installation (i.e. in the Java's 'jre/lib/ext/' directory on linux). | 44 installation (i.e. in the Java's 'jre/lib/ext/' directory on linux). |
44 | 45 |
45 # Codec availability and Performance | 46 # Codec availability and Performance |
58 if these jar files are availabe on the classpath, the codecs may be used by digilib. To add them the jar files could e.g. be placed in the lib directory of tomcat or addded as a dependency to the digilib maven project. | 59 if these jar files are availabe on the classpath, the codecs may be used by digilib. To add them the jar files could e.g. be placed in the lib directory of tomcat or addded as a dependency to the digilib maven project. |
59 | 60 |
60 The actual codec implementation used is logged by digilib in debug mode, e.g. | 61 The actual codec implementation used is logged by digilib in debug mode, e.g. |
61 | 62 |
62 1564059 [http-apr-9092-exec-4] DEBUG digilib.image.DocuImage - ImageIO: this reader: class com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader | 63 1564059 [http-apr-9092-exec-4] DEBUG digilib.image.DocuImage - ImageIO: this reader: class com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader |
64 | |
65 (Robert Casties, Oct 2015) | |
66 | |
67 You can now use the TwelveMonkeys codecs instead of the default JAI-ImageIO by [building digilib](build-maven.html) with the Maven-Parameter `imageio=12m`: | |
68 | |
69 mvn -Dimageio=12m package | |
63 | 70 |
64 # Codec performance | 71 # Codec performance |
65 | 72 |
66 (Ubbo Veentjer, Oct 2015) | 73 (Ubbo Veentjer, Oct 2015) |
67 | 74 |
85 * common-io-3.1.2.jar | 92 * common-io-3.1.2.jar |
86 * imageio-core-3.1.2.jar | 93 * imageio-core-3.1.2.jar |
87 * imageio-metadata-3.1.2.jar | 94 * imageio-metadata-3.1.2.jar |
88 | 95 |
89 | 96 |
90 # Codec availability | 97 # Available image formats |
91 | 98 |
92 (Ubbo Veentjer, Oct 2015) | 99 (Ubbo Veentjer, Oct 2015) |
93 | 100 |
94 Digilib logs on startup which image formats are supported, e.g: | 101 Digilib logs on startup which image formats are supported, e.g: |
95 | 102 |