Scale multi page TIFF Image in java
问题 I want to change the height of multi page TIFF image so I am using below code snippet to scale it. But It returns just first page from the tiff file , I guess it converts it to JPEG image. How to retain all pages of the file?? public static byte[] scale(byte[] fileData, int width, int height) { System.out.println("width:::"+width+"::::height:::"+height); ByteArrayInputStream in = new ByteArrayInputStream(fileData); ByteArrayOutputStream buffer=null; BufferedImage img=null; BufferedImage