Image viewer should use exif data to rotate image before displaying
Expected behaviour
Many camera's these days use exif metadata to define whether an image was taken in landscape or portrait mode, yet always store the image in landscape mode.
To properly display such images, the exif data should be parsed for rotation information and this information should be used to apply the proper rotation to the image before displaying it.
Actual behaviour
I have found the the owncloud client on android ignores the exif rotation information. As a result, images are displayed in the wrong direction. Turning the android device to put the image upright triggers the auto-rotate function resulting in the image being rotated back to its wrong orientation.
Environment data
Android version: 4.1.1 Device model: Asus Transformer Prime TF201 Stock system, with all official updates applied ownCloud app version: 1.4.0 ownCloud server version: 4.5
Logs
Skipped. I don't think this issue requires logs. If you do need them, please tell me which ones to upload.
Thanks for your suggestion.
At the moment, we open image files in our app without processing any information from the file, so we don't process exif rotation information.
We can take this idea in next improvements about opening image files, but it isn't our principal aim at this moment.
Thanks again for your feedback
Please see: https://github.com/owncloud/android/pull/681
Hi @gjanssens,
This functionallity has been developed by @tobiasKaminsky and it is now in develop branch. It will be included in next ownCloud app version.
Thanks guys!