Package org.dspace.iiif.canvasdimension
Class ImageDimensionReader
java.lang.Object
org.dspace.iiif.canvasdimension.ImageDimensionReader
Reads and return height and width dimensions for image bitstreams.
- Author:
- Michael Spalti mspalti@willamette.edu
-
Method Summary
Modifier and TypeMethodDescriptionstatic int[]getImageDimensions(InputStream image) Uses ImageIO to read height and width dimensions.
-
Method Details
-
getImageDimensions
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
-