在将图像发送到服务器之前,需要压缩图像的大小以用于android和ios。
答案 0 :(得分:1)
https://github.com/appcelerator-modules/ti.imagefactory
这是自述文件 - https://github.com/appcelerator-modules/ti.imagefactory/blob/stable/ios/documentation/index.md
但基本功能是
newBlob = ImageFactory.compress(blob, 0.25);