Picture orientation issue when uploading to Firebase
<p>I allow the user to upload photos from their photo library or by using their camera. </p>

<p>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). </p>

<p>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. </p>

<p>How do I force the image from the camera to be uploaded in the Portrait orientation? </p>

<p>The photos from the photo library upload with the correct orientations. Also I am using a JPEG representation with compression if that is relevant.</p>