Picture compression for Titanium using UI

3997
    


来源:
Licence:
联系:
分类:
平台:
环境:
大小:
更新:
标签:
联系方式 :
免费下载 ×

下载APP,支持永久资源免费下载

限免产品服务请联系qq:1585269081

下载APP
免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
下载 ×

下载APP,资源永久免费


如果出现不能下载的情况,请联系站长,联系方式在下方。

免费下载 ×

下载论文助手APP,资源永久免费

免费获取

如果你已经登录仍然出现不能下载的情况,请【点击刷新】本页面或者联系站长


Titanium JPGCompressor Author: Philipp Fehre Website Repository: https://github.com/sideshowcoder/jpgcompressor Description Compression Passing through UIImageJPEGRepresentation option to compress and scale images passed as a TiBlob. The resulting image is write to e temporary file if the name is passed as a secound argument or passed back as a TiBlob if no name is given. The compression quality is calculated by check the received data size against the desired size the ratio is taken as the compression factor. If wortQuality limit is set it is the take as the compression factor if the ratio calculated drops below. Example 100kb Image desired 50kb compressed -> compression factor 0.5 100kb Image desired 50kb compressed, worst quality set to 0.6 -> compression factor 0.6 Scaling Scale images using UIGraphicsBeginImageContext to fit the image in the desired size Usage See example/app.js and https://github.com/sideshowcoder/jpgcompressor/blob/master/documentation/index.md Testing Run the example app and follow its log see example/app.js for more details Setup Install the CLI tools via npm install appcelerator -g and install the needed sdk after by running appc setup and titanium sdk install 3.5.0.GA . Now you can build the module by going into the folder and run python build.py . NOTE: Depending on your python setup it might complain about missing markdown This can be solved by running sudo easy_install markdown


免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
温馨提示
请用电脑打开本网页,即可以免费获取你想要的了。
扫描加我微信 ×

演示

×
登录 ×


下载 ×
论文助手网
论文助手,最开放的学术期刊平台
				暂无来源信息			 
回复
来来来,吐槽点啥吧

作者联系方式

×

向作者索要->