JPEG to TIFF 6
I'm needing a way to convert a JPEG into a TIFF 6 with a compression of CCITT G4 (200 DPI minimum resolution - Black/White). I was able to create a TIFF this way but wasn't able to set the compression properly and was redirected to use the JAI Image I/O Tools. Any help would be greatly appreciated.
String tiffFile = "myTiff.tiff";
String jpegFile = "myJPEG.jpeg";
FileOutputStream out = new FileOutputStream(tiffFile);
RenderedImage src = JAI.create("fileload", jpegFile);
TIFFImageEncoder encoder = new TIFFImageEncoder(out, null);