l***@163.com
l***@163.com
  • 发布:2017-11-04 16:32
  • 更新:2018-04-19 14:06
  • 阅读:1602

plus.zip.compressImage在ios上压缩没有效果

分类:HTML5+
                                                                     plus.zip.compressImage({  
                                        src: path,  
                                        dst: sd_path,  
                                        quality: 1,  
                                        format: 'jpg',  
                                        overwrite: true  
                                    },function(){},function(){}  

quality都为1和20没有任何区别。6plus上压缩后还出现6M多的图片。bug吗?

2017-11-04 16:32 负责人:无 分享
已邀请:
liangyue

liangyue

同问

l***@163.com

l***@163.com (作者)

plus.zip.compressImage({
src: path,
dst: sd_path,
quality: 20,
format: 'jpg',
width: plus.screen.resolutionWidth plus.screen.scale,
height: plus.screen.resolutionHeight
plus.screen.scale,
overwrite: true
},funtion(){},funtion(){}

加了 width和 height之后。有些改善。但是在6p上还是有些问题。

NightsWatcher

NightsWatcher

大佬们,有人解决吗,压缩了两遍还是10M+

NightsWatcher

NightsWatcher

我好像解决了,
plus.zip.compressImage({//压缩图片 参数
src:localurl,
dst:destutl,
format: 'jpg',
quality:1,
overwrite: true
},function(){},function(){}):
我是加上 format: 'jpg',之后才解决掉,到服务器后是600k左右

该问题目前已经被锁定, 无法添加新回复