|
[App引擎]
使用api.getPicture基础方案取得图片可能是横的
[复制链接]
我用文档给的demo代码取得了本地图片url后,立刻赋值给一个img标签的src属性,得到的图片可能是横着的。据说修复了,但是我使用的是当前最新ide,网站云编译的安装包。
我使用你们提供的完整demo编译的app,也是会把图片横着的。
app的二维码:,api对象->getPicture
- api.getPicture({
- sourceType: 'library',
- encodingType: 'png',
- mediaValue: 'pic',
- destinationType: 'url',
- allowEdit: true,
- quality: 50,
- targetWidth:100,
- targetHeight:100,
- saveToPhotoAlbum: false
- }, function(ret, err){
- if (ret) {
- api.alert({msg:ret.data});
- } else{
- api.alert({msg:err.msg});
- };
- });
复制代码
谢谢
|
|