Android Question Image Orientation

Marcos Alves

Well-Known Member
Licensed User
Longtime User
Hello,

I'm getting a problem here. When receiving images from content chooser and displaying in a imageview I get the result rotated many times... I mean, the image showed is rotated. Doing a little research to find the cause of this problem I discovered that the images with the orientation jpeg tag different than 0 are being rotated when loaded into an imageview object (even when the presentation in gallery is ok). The question: how can I fix this problem?

Anybody?
 

Marcos Alves

Well-Known Member
Licensed User
Longtime User
thanks @Erel & @Eme Fibonacci ! I found what was happening. When copying the image using outputstream the metadata was being lost. The solution was to copy the image with file.copy... and check the orientation before doing anything else, aplying the rotate if needed.

Thanks again all you! The b4A community is always present!
 
Upvote 0
Top