Cordova phonegap image orientation

when I started using phonegap, I was puzzled by the overlapping functionality of “camera” and “capture” and I found out the hard way that capture does not allow to define image rotation in the device, but can be sorted out by utilizing the metadata. I ended up using php thumb, which reads the metadata and is able to perform a few filters on an image.

easier solution: phonegap camera works adequately by adding “correctOrientation: true” to display a vertical image correctly on the device, or in a web browser.