Home › Forums › Development › How to get size of image without reading it in memory? › Reply To: How to get size of image without reading it in memory?
August 3, 2019 at 8:52 am
#67911
Participant
Is this a solution?
OMEXMLMetadata metaData = null;
try {
metaData = Loader.getOMEXMLMetaData(path);
} catch (UnsupportedFormatException | IOException e) {
e.printStackTrace();
}
int imageWidth = MetaDataUtil.getSizeX(metaData, 0);
int imageHeight= MetaDataUtil.getSizeY(metaData, 0);