I iterate over all pictures in ppt using following,
for(XSLFPictureData data : ppt.getAllPictures()){
byte[] bytes = data.getData();
String fileName = data.getFileName();
int pictureFormat = data.getPictureType();
System.out.println("picture : " + fileName);
System.out.println("pictureSize : " + data.getImageDimensionInPixels());
}
As described in doc: Documentation POI getImageDimensionInPixels()
How to use this method to get image size in pixels or height/length?