Getting metadata from image
I am trying to get the metadata for an image.
I know that I can use the reader directly:
metadata = reader.getImageMetadata(0);
But if I use imageio to read in the image and pass in an ImageReadParam i imagine that based upon what I pass as parameters (if I set the dimension the width and height will be different) to the ImageReadParam the metadata that I get from the read will be different than that of the actual image. i.e.
RenderedImage image = ImageReader.readAsRenderedImage(0, readParam);
Is there a way to pass an ImageReadParam to a reader such that the getImageMetadata(0) takes that into account?