RGB TIFF to bi-level TIFF
Let me preface this post by saying Iâ€™m new to JAI Imageio.
Iâ€™m processing several TIFF images that are Black and White scans of legal documents. The images are compressed with LZW and Iâ€™m recompressing them with Group 4. This piece is working fine however Iâ€™ve discovered some of these images are RGB for an unknown reason. Obviously because itâ€™s not bi-level the Group 4 compression fails.
Iâ€™ve been doing some research however I canâ€™t figure out how to convert a RGB image to a bi-level image. Does anyone know of a post or any documentation that addresses this subject?