Camera.prototype.getResizedPicture = function(successCallback, errorCallback, options) { if (OSCode != 'IPH') { return this.getPicture(successCallback, errorCallback, options); } // successCallback required if (typeof successCallback != "function") { console.log("Camera Error: successCallback is not a function"); return; } // errorCallback optional if (errorCallback && (typeof errorCallback != "function")) { console.log("Camera Error: errorCallback is not a function"); return; } PhoneGap.exec(successCallback, errorCallback, "com.phonegap.cameraExtended","getPicture",[options]); };