How to convert TIFF to JPEG/PNG in java

Had gone through some study and testing, found a method to convert TIFF to JPEG and sorry for pending so long only uploaded this answer. SeekableStream s = new FileSeekableStream(inFile); TIFFDecodeParam param = null; ImageDecoder dec = ImageCodec.createImageDecoder(“tiff”, s, param); RenderedImage op = dec.decodeAsRenderedImage(0); FileOutputStream fos = new FileOutputStream(otPath); JPEGEncodeParam jpgparam = new JPEGEncodeParam(); jpgparam.setQuality(67); … Read more

Where can I download Jai and Jai-imageio? [closed]

Here you go: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-client-419417.html Maybe this is interessting, too. I saw they provide some extensions: http://java.net/projects/imageio I know about Sanselan and ImageJ, too, but do not know if and how they give you the ability to read the pixelcolor. But as long as you can get a BufferedImage in Java you should be able to … Read more