android icon indicating copy to clipboard operation
android copied to clipboard

Image viewer should use exif data to rotate image before displaying

Open gjanssens opened this issue 13 years ago • 3 comments

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.

gjanssens avatar May 01 '13 18:05 gjanssens

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

masensio avatar Jun 09 '14 11:06 masensio

Please see: https://github.com/owncloud/android/pull/681

tobiasKaminsky avatar Oct 25 '14 14:10 tobiasKaminsky

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!

jabarros avatar Dec 17 '14 15:12 jabarros