This commit is contained in:
tiago.kayaya
2021-02-10 17:00:11 +01:00
parent c338e2c440
commit f3cf194d1a
@@ -66,7 +66,7 @@ export class NewPublicationPage implements OnInit {
} }
takePicture(){ takePicture(){
const options: CameraOptions = { const options: CameraOptions = {
quality: 100, quality: 90,
destinationType: this.camera.DestinationType.DATA_URL, destinationType: this.camera.DestinationType.DATA_URL,
encodingType: this.camera.EncodingType.JPEG, encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE, mediaType: this.camera.MediaType.PICTURE,
@@ -86,8 +86,8 @@ export class NewPublicationPage implements OnInit {
} }
getPicture(){ getPicture(){
/* const options: CameraOptions = { const options: CameraOptions = {
quality: 100, quality: 90,
sourceType: this.camera.PictureSourceType.PHOTOLIBRARY, sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
destinationType: this.camera.DestinationType.DATA_URL, destinationType: this.camera.DestinationType.DATA_URL,
encodingType: this.camera.EncodingType.JPEG, encodingType: this.camera.EncodingType.JPEG,
@@ -103,7 +103,7 @@ export class NewPublicationPage implements OnInit {
this.capturedImageTitle = new Date().getTime() + '.jpeg'; this.capturedImageTitle = new Date().getTime() + '.jpeg';
}, (err) => { }, (err) => {
console.log(err); console.log(err);
}); */ });
} }
async save(){ async save(){