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