0
カメラ画像をプレビューする際にトリミング画像機能を呼び出すためのソリューション。以下でこのコードを試しました。トリミング画像機能カメラプレビュー画面(イオン性)
var options = {
quality: 50,
destinationType: Camera.DestinationType.DATA_URL,
sourceType: Camera.PictureSourceType.CAMERA,
allowEdit: true,
encodingType: Camera.EncodingType.JPEG,
saveToPhotoAlbum: false,
correctOrientation:true
};
try{
$cordovaCamera.getPicture(options).then(function(imageData) {
var image = document.getElementById('myImage');
image.src = "data:image/jpeg;base64," + imageData;
}, function(e) {
alert(e);
});
} catch(e){
alert(e);
}
};
getpicture function is invoked by cordova camera plugin. while coded allowedit as true. it invokes the crop image function after clicking ok. but I want to invoke the crop function before placing ok button(In preview screen).
それはカメラのプレビュー画面の後にトリミングを呼び出す、私はプレビュー画面自体でトリミングを呼び出したい。 – user7011416
画像をキャプチャしてトリミングしてプレビューを表示し、画像を保存します – Anuj