diff servlet/src/digilib/image/ImageOps.java @ 352:5ded9e06cd57

Servlet version 1.5.9b - added mo=png option to enforce PNG output - set higher JPEG quality for mo=q2 (only ImageLoaderDocuImage)
author robcast
date Wed, 14 Sep 2005 21:59:07 +0200
parents 60a064f27d25
children eec0d8c9c3c9
line wrap: on
line diff
--- a/servlet/src/digilib/image/ImageOps.java	Wed Aug 10 11:58:05 2005 +0200
+++ b/servlet/src/digilib/image/ImageOps.java	Wed Sep 14 21:59:07 2005 +0200
@@ -46,6 +46,11 @@
 
 	private static Logger logger = Logger.getLogger(ImageOps.class);
 
+	public static int TYPE_AUTO = 0;
+	public static int TYPE_JPEG = 1;
+	public static int TYPE_PNG = 2;
+	
+	
 	/** Check image size and type and store in ImageFile f */
 	public static boolean checkFile(ImageFile imgf) throws IOException {
 		// fileset to store the information