代码参考了Luban的代码。
要运行示例项目,请克隆仓库,然后从Example目录运行 pod install
墨子可通过CocoaPods获得。要安装,只需将以下行添加到Podfile中。
pod "Mozi"
let compressedImage = image.compressedImage()
let compressedImgData = image.compressedData()
iCell, [email protected]
墨子遵循MIT许可协议。请查阅LICENSE文件获取更多信息。