How do you automatically rotate a captured image using Phonegap?

I am working on an example I got from Phonegap when capturing images with the device's built-in camera. If I rotate the device, the saved image remains in that orientation.

I know in javascript, I can manipulate images ... and Phonegap has a G api calibration sensor that I can use ... but is there a direct way through Phonegap to automatically detect orientation?


source to share

1 answer

the problem is that exif data (which contains orientation among other things) is not passed by the plugin. For this reason, you need to try to figure out which "path" was taken. Worst case, let the user rotate it.



All Articles