I allow the user to upload photos from their photo library or by using their camera.
The issues takes place when the user uploads from the camera. Even though the picture is taken in the portrait mode the image is rotated by 90 degrees CCW (counter clockwise).
When I do a check on the images orientation when I want to display it in an image view it says that the image is already in the .Up position even though it is clearly rotated 90 degrees CCW.
How do I force the image from the camera to be uploaded in the Portrait orientation?
The photos from the photo library upload with the correct orientations. Also I am using a JPEG representation with compression if that is relevant.