Link
Skip to main content

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


Why JDeli?

  • Support image formats such as AVIF, HEIC and JPEG XL (AVIF soon) that are not supported in Java.
  • Process images up to 3x faster than ImageIO and alternative Java image libraries.
  • Prevent JVM crashes caused by native code in other image libraries such as ImageIO.
  • Handle JPEG, PNG, TIFF image file formats fully in Java.
  • Keep your Image files secure as JDeli makes no calls to any external system or third party library.

Learn more about JDeli

Start Your Free Trial