I have some server code that is generating thumbnails when an image is uploaded. The issue is that when the image was taken and the camera/device was rotated, the thumbnail
The Thumbnailator library honors EXIF orientation flags. To read an image at full size with correct orientation:
BufferedImage image = Thumbnails.of(inputStream).scale(1).asBufferedImage();