Package org.dspace.iiif.canvasdimension
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int[]getImageDimensions(InputStream image)Uses ImageIO to read height and width dimensions.
-
-
-
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:
ExceptionIOException
-
-