Android 和 IOS 的 Titanium 图像压缩
Titanium Image Compression for both Android and IOS
android 和 ios 都需要在将图像发送到服务器之前压缩图像的大小。
你试过这个模块了吗?
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);
android 和 ios 都需要在将图像发送到服务器之前压缩图像的大小。
你试过这个模块了吗?
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);