Changing color depth
I'm trying to convert 32 bit TIFF and PNG images to JPG, my first approach was unsucessfull, I tried to use just ImageIO.read/write to convert the image, but the output is generated with inverted colors, my last try was with ColorConvertOp, but I got the same output.
I would like to know if somebody had done it before, change a 32 bit image to 24 bit image. I tried to user ordereddither and errordiffusion provided by jai but with no success.
Any help will be appreciated.