Class ImageDimensionReader

java.lang.Object
org.dspace.iiif.canvasdimension.ImageDimensionReader

public class ImageDimensionReader extends Object
Reads and return height and width dimensions for image bitstreams.
Author:
Michael Spalti mspalti@willamette.edu
  • Method Details

    • getImageDimensions

      public static int[] getImageDimensions(InputStream image) throws IOException
      Uses ImageIO to read height and width dimensions.
      Parameters:
      image - inputstream for dspace image
      Returns:
      image dimensions or null if the image format cannot be read.
      Throws:
      Exception
      IOException