|
[BUG]
FNImageClip在IPhone 5s显示不出来
[复制链接]
安卓上显是这个样的
iphone 5s一片黑 但是我按下确认是已经裁剪成功了,只是没法显示出来
<script>
var header_h,picUrl,imgwidth,imgheight;
apiready=function(){
picUrl=api.pageParam.picUrl;
if(typeof(picUrl) == 'string'){
clip(header_h,height,picUrl);
}else {
window.i=picUrl.length
window.len=0;
clip(header_h,height,picUrl[len]);
}
}
function clip(header_h,height,img){
FNImageClip.open({
rect: {
x: 0,
y: 0,
w: api.winWidth,
h: api.winHeight
},
srcPath: img,
style: {
mask: 'rgba(0,0,0,0.4)',
clip: {
x : 0,
y : 0,
w : api.winWidth,
h : api.winWidth,
borderColor: '#0f0',
borderWidth: 1,
appearance: 'rectangle'
}
},
fixedOn:'clip'
},
function(ret, err) {
if (ret) {
} else {
}
});
}
function save(){
FNImageClip.save({
destPath:'fs://imageClip/header.png',
copyToAlbum: false,
quality: 1
},
function(ret, err){
if(ret) {
api.sendEvent({
name: 'insertPic1',
extra: {pic:ret.destPath}
});
api.closeWin();
} else{
}
});
}
求帮助
|
|