2022.1

Table Of Contents
Optional. An array containing the desired settings, e.g. {quality: 50, height: 1024, width: 1024}.
For any unspecified options the default settings will be used.
Initialize the new Camera element with any settings that you want to be different from the
defaults.
Example: $('#myCamera').cotgPhotoWidget({quality: 50, height: 1024});
How to change the default settings is explained in another topic: "Changing default settings for
widgets" on page640.
Option Description Type Default
editimage
Allows the user to edit the image
after taking or selecting it. Which
editing options the user actually
gets and how they are presented
depends on the operating
system of the device.
Boolean false
encodingtype
The returned image's file
encoding: jpg or png.
String 'jpg'
height The maximum height in pixels
Number 864
width The maximum width in pixels. Number 1152
source Which buttons are enabled:
Take now (take), Library
(pick), or both
(takeandpick).
String 'takeandpick'
scaleimage Scales the image to fit the
maximum width or height. The
aspect ration is maintained.
Boolean true
quality Quality of the saved image,
expressed as a range of 0-100,
where 100 is full resolution with
Number 80
Page 654