A
Armin Gajda
Hi,
JAI can be used to convert PNG images files to TIFF:
String source = "c:/tmp/1.png";
FileOutputStream out = new FileOutputStream ("c:/tmp/2.tiff");
RenderedOp src = JAI.create("fileload", source);
TIFFImageEncoder encoder = new TIFFImageEncoder (out, null);
encoder.encode (src);
1. I don't want to run it file based, so I was wondering how to pass the
source file as a stream.
2. A 15K PNG file is blown up to 2.5 MB TIFF. How can I use a compression?
thank you
Armin
JAI can be used to convert PNG images files to TIFF:
String source = "c:/tmp/1.png";
FileOutputStream out = new FileOutputStream ("c:/tmp/2.tiff");
RenderedOp src = JAI.create("fileload", source);
TIFFImageEncoder encoder = new TIFFImageEncoder (out, null);
encoder.encode (src);
1. I don't want to run it file based, so I was wondering how to pass the
source file as a stream.
2. A 15K PNG file is blown up to 2.5 MB TIFF. How can I use a compression?
thank you
Armin