diff servlet/src/digilib/image/JAIDocuImage.java @ 543:919e008ab1fb digilibPDF

more steps towards more standard java.util.concurrent design
author robcast
date Thu, 14 Oct 2010 14:24:33 +0200
parents e758a49258e8
children 686086d6e6d6
line wrap: on
line diff
--- a/servlet/src/digilib/image/JAIDocuImage.java	Wed Oct 13 18:40:54 2010 +0200
+++ b/servlet/src/digilib/image/JAIDocuImage.java	Thu Oct 14 14:24:33 2010 +0200
@@ -138,6 +138,7 @@
 		if (img == null) {
 			throw new FileOpException("Unable to load File!");
 		}
+        mimeType = f.getMimetype();
 	}
 
 	/* Load an image file into the Object. */
@@ -168,6 +169,7 @@
 			// scale
 			logger.debug("loadSubimage: scale");
 			img = JAI.create("scale", sp);
+            mimeType = f.getMimetype();
 		}
 	}