quality : It compresses the image and reduces the size of the image.Its value ranges from 1-100, where 100 means best quality image.
Example
Code: Select all
var jsonobj = {
targetWidth: "200",
targetHeight: "200",
crop: "Y",
flash: "N",
action: "base64_Save",
fileName: imageNumber.toString(),
quality: "50",
encodingType: "JPG",
sourceType: "Camera",
openNativeCamera: "Y",
fileOverwrite: "N"
};
apz.ns.openCamera(jsonobj);