changeset 208:460cd1f18b96

Servlet version 1.18b9 -- cleanup and bugfixes - fixed bug with slow color JPEGs - better pathname handling - better filehandle cleanup (hopefully)
author robcast
date Fri, 12 Mar 2004 19:52:06 +0100
parents 1a65d8e43620
children f8c82fea551a
files servlet/src/digilib/image/JAIDocuImage.java
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/servlet/src/digilib/image/JAIDocuImage.java	Fri Mar 12 19:52:06 2004 +0100
+++ b/servlet/src/digilib/image/JAIDocuImage.java	Fri Mar 12 19:52:06 2004 +0100
@@ -116,6 +116,7 @@
 
 	/* scales the current image */
 	public void scale(double scale, double scaleY) throws ImageOpException {
+		logger.debug("scale");
 		if ((scale < 1)
 			&& (img.getColorModel().getPixelSize() == 1)
 			&& (quality > 0)) {
@@ -410,4 +411,11 @@
 		img = enhImg;
 	}
 
+	/* (non-Javadoc)
+	 * @see digilib.image.DocuImage#dispose()
+	 */
+	public void dispose() {
+		img = null;
+	}
+
 }