2016-05-11 6 views
0

プラグインを使用しました。 画像を正常に取得して保存しましたが、画像の品質が悪かったです。カメラアプリでキャプチャするのと同じ品質で画像をキャプチャするオプションはありますか?cordovaのCameraPictureBackgroundプラグインで画質を変更する方法

function success(imgurl) { 
    console.log("Imgurl = " + imgurl); 
    //here I added my function to upload the saved pictures 
    //on my internet server using file-tranfer plugin 
} 

function onFail(message) { 
    alert('Failed because: ' + message); 
} 

function CaptureBCK() { 
    var options = { 
    name: "Image", //image suffix 
    dirName: "CameraPictureBackground", //foldername 
    orientation: "portrait", //or landscape 
    type: "back" //or front 
    }; 

    window.plugins.CameraPictureBackground.takePicture(success, onFail, options); 
} 


    <button onclick="CaptureBCK();">Capture Photo</button> <br> 

答えて

0

画像をキャプチャするためにCordova-plugin-cameraプラグインを使用してください。 0-100の品質基準で画像を保存するためのさまざまなオプションがあります。 100は高品質です。

https://github.com/apache/cordova-plugin-camera

関連する問題