Ron McLeod wrote:It looks like the Java Advanced Imaging API with the TIFF codec (com.sun.media.jai.codecimpl.TIFFFaxDecoder?) can do this.
I don't think, that this will work. TIFFFaxDecoder is a protected class of the jai package and is used internally, I could of course take the sources and try to play around, but I think there should be some ImageDecoder for this purpose.
What I am searching for is the following, check the code fragment below:
The problem is, thet the reading section especially
ImageDecoder decoder = ImageCodec.createImageDecoder("tiff", stream, decodeParams);
should be replaced by some ImageDecoder implementation which internally uses a FaxDecoder for decoding a g3 raw fas file. This decoded image I can afterwards simply write as tiff with the given code above. But I couldn't find a code snipplet so far which decodes the g3 rawfile.
Thanks