Link

Convert TIFF to multipage TIFF

JDeli is able to convert individual TIFF images into a single multipage Tiff file.

Read / Write methods for converting from TIFF into Multipage TIFF file

  1. Read TIF image into Java (also handles other supported images)
     BufferedImage image = JDeli.read(imageFile);
    

    or

     TiffDecoder decoder = new TiffDecoder();
     BufferedImage image = decoder.read(imageData);
    
  2. Process image if needed
  3. Write out Java image to a multiple image TIFF (will be append if file exists or created if not).
     final TiffEncoderOptions options = new TiffEncoderOptions(); 
         
     //set any options in options instance - examples below 
     options.setCompressionFormat(TiffCompressionFormat.DEFLATE); 
     options.setXmpMetaData("xmp metadata");
         
     TiffEncoder encoder = new TiffEncoder(options);
     encoder.append(image, outputFileName);
    

    This uses the TiffEncoder class