[VIVO-1234] Use alternative colour space that should work better with OpenJDK

This commit is contained in:
Graham Triggs 2016-03-11 15:15:47 +00:00
parent bbad114f85
commit acf54541a5

View file

@ -87,7 +87,7 @@ public class JaiImageProcessor implements ImageProcessor {
try {
RenderedOp mainImage = loadImage(mainImageStream);
BufferedImage bufferedImage = new BufferedImage(mainImage.getWidth(), mainImage.getHeight(), BufferedImage.TYPE_INT_RGB);
BufferedImage bufferedImage = new BufferedImage(mainImage.getWidth(), mainImage.getHeight(), BufferedImage.TYPE_3BYTE_BGR); // BufferedImage.TYPE_INT_RGB
new ColorConvertOp(null).filter(mainImage.getAsBufferedImage(), bufferedImage);
log.debug("initial image: " + imageSize(bufferedImage));