Based on your comment: 2560X1920. Its big, but I have to find a way to fit it in.. @gunar - I have to show this image to the user before sending it to the server 2560X1920. Its big, but I have to find a way to fit it in.. @gunar - I have to show this image to the user before sending it to the server .
To display an image for the user, you first need to resize it. Follow the famous developer article on how to efficiently download and display bitmaps.
But in this case, you will need to take into account the rotation when calculating the parameters for the width and height (I think you are using Exif info).
Sending a large image to the server is more difficult. I saw this post on how to rotate large images, but I did not have time to try this. The idea is to rotate the raster image matrix into another target raster map.
However, I would suggest turning the image on the server side or if you cannot make changes on the server side because it does not belong to you, create your own proxy server, send your image to this instance, rotate it there and from there send the rotated image to the original server (by forwarding any data that the Android client usually sends).
gunar source share