You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/02/22 13:12:01 UTC
[GitHub] websitedesignanddeveloper opened a new issue #423: editAllow and
correctOrientation not working everytime
websitedesignanddeveloper opened a new issue #423: editAllow and correctOrientation not working everytime
URL: https://github.com/apache/cordova-plugin-camera/issues/423
### Issue
editAllow and correctOrientation not working properly everytime
### Description
Tried on vivo and oppo devices
Oppo -
Camera - working editAllow or correctOrientation one of them
Gallery - editAllow work Sometime
Vivo -
Camera - not work both editAllow and correctOrientation
Gallery - not work both editAllow and correctOrientation
### Code -
OpenCamera()
{
const options: CameraOptions = {
correctOrientation : true,
quality: 50,
destinationType: this.camera.DestinationType.DATA_URL,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE,
allowEdit:true
}
this.camera.getPicture(options).then((imageData) => {
this.profImage = imageData;
let data = { 'photo': this.profImage };
this.upload(data);
}, (err) => {
// Handle error
console.log(err);
});
}
OpenGallery()
{
const options: CameraOptions = {
correctOrientation : true,
quality: 50,
destinationType: this.camera.DestinationType.DATA_URL,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE,
sourceType : this.camera.PictureSourceType.PHOTOLIBRARY,
allowEdit:true
}
this.camera.getPicture(options).then((imageData) => {
this.profImage = imageData;
let data = { 'photo': this.profImage };
this.upload(data);
}, (err) => {
// Handle error
console.log(err);
});
}
### Version information
ionic (Ionic CLI) : 4.10.3
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
@ionic-native/camera": "^4.20.0"
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org