Skip to main content

Changing color depth

1 reply [Last post]
rpa_rio
Offline
Joined: 2004-01-24

Hi!

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.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rpa_rio
Offline
Joined: 2004-01-24

Fixed with ColorConvertOp.