I want to use the metadata-extractor Java Library version 2.18 to extract metadata from images. Does the library respect the orientation Exif tag on the calculation of the image width and height of an image?
The library will provide you access to all three values: width, height, orientation. You can do with them as you wish.
If you think there'd be a generally useful helper function that we could add to the library to make this easier to get right, we would consider a pull request, depending upon the proposed API.