Class ImageDimensionReader


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

      • 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