Take square image with Cordova (Phonegap) Camera API?
I have successfully coded the camera API to take and save photos (on iOS).
However, I want the photos to be square (like Instagram).
I have set the targetWidth and targetHeight to the same pixels but the
images still comes out portrait or landscape, depending on how the phone
is held.
My complete API code is:
navigator.camera.getPicture(onPhotoDataSuccess, onFail, {
quality: 50,
targetWidth: 600,
targetHeight: 600,
correctOrientation: 1,
saveToPhotoAlbum: 1
});
Does anyone know how to save a square photo with this API on iOS devices?
No comments:
Post a Comment