I'm doing a phonegap app and I take a picture with this method:
// A button will call this function
//
function capturePhoto() {
// Take picture using device camera and retrieve image as base64-encoded string
//
navigator.camera.getPicture(onPhotoDataSuccess, onFail, {
quality : 50,
destinationType : destinationType.DATA_URL,
targetWidth: 100
});
}
But I want to know if there is a way in phonegap to know the weight of the photo that's taken.