breautek edited a comment on issue #692:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/692#issuecomment-737176070


   > Image size is dynamic, how to convert this?
   
   Image size is always dynamic, it is impossible to get a specific size for an 
image. The size of the image depends on several factors including the 
resolution of the image, the quality of the image, and the nature of the 
capture image. An image that consists of straight lines and solid colors 
compresses easier than an image that contains complex shapes/lines and several 
colours. These all affect the resulting size of the image.
   
   The `quality` option specifically is the inverse of the compression rate -- 
that is `0` means high compression (to reduce the file size at the lost of 
quality, ie the image will become "patchy"), and a value of 100 basically means 
no compression.
   
   > this.camera.DestinationType.DATA_URL
   
   Another note on sizes, `DATA_URL` means the image is represented in base64 
encoded string. Binary data represented in base64 encoded string will be about 
40% larger than the original binary in it's raw form. If you're concerned about 
image size, you may want to use `FILE_URI` instead.
   
   Because Cordova uses GitHub Issues for tracking bugs only, I'll be closing 
this issue. If you need further assistance, I invite you to join our 
[Slack](http://slack.cordova.io/) community.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to