I'm using Sencha Touch and Phonegap to display a picture recorded with
the camera. When taking a picture on an iphone via cordova2.7.0, the
picture is drawn with the correct orientation. But using samsung s3, the picture will be leant by -90°(only for portrait images).

I use the above code to take picture.
The portrait images took from camera displays in correct orientation, issue happens only for the portrait images took from the gallery. Is there is any way to solve this problem?