我是PhoneGap的新手,想知道如何在iOS中将照片保存到照片。通过PhoneGap在iOS中保存照片到PNG或JPG图像
虽然我能够使用
navigator.camera.getPicture
与选项
quality:50, destinationType:Camera.DestinationType.DATA_URL,saveToPhotoAlbum: true
保存用相机照片拍摄的照片,我现在正在试图找出如何保存在 - 应用图片转为照片。 “:; BASE64,图像/ JPEG数据” ...
<html>
<head>
<title>Save Image</title>
<script type="text/javascript" charset="utf-8" src="cordova-2.1.0.js"></script>
<script type="text/javascript" charset="utf-8">
function savePicture(){
//this is where the magic would happen
//how can I save myPhoto to Photos?
//output imageData to a jpg or png file which would show up in Photos?
}
</script>
</head>
<body>
<button onclick="savePicture();">Save Photo</button> <br>
<input type="hidden" name="myPhoto" id="myPhoto" value="">
</body>
</html>
问:
又该savePicture其中元素myPhoto持有的图象 - 科尔多瓦页如 -
考虑下面的PhoneGap ()通过Phonegap将图像数据从myPhoto保存到iOS中的照片?
我用你的代码和程序但我无法获得解决方案。你能帮我找出答案吗? –
是的我得到解决方案..我得到了线程警告:插件应该使用CordovaInterface.getThreadPool()。 – Muthu