Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Rendering performance improvement : use EncodedImage constructor with BufferedImage parameter to avoid re-rerendering BufferedImage.

luc5eafce557792
diff --git a/htroot/ViewImage.java b/htroot/ViewImage.java
index 07857af5d..a77ffc363 100644
--- a/htroot/ViewImage.java
+++ b/htroot/ViewImage.java
@@ -289,7 +289,7 @@ public class ViewImage {
* An error can still occur when transcoding from buffered image to
* target ext : in that case return null
*/
- encodedImage = new EncodedImage((Image)image, ext, isStatic);
+ encodedImage = new EncodedImage(image, ext, isStatic);
if (encodedImage.getImage().length() == 0) {
throw new IOException("Image could not be encoded to format : " + ext);
}