LEGOImageCropper 1.0.0

LEGOImageCropper 1.0.0

Maintained by yangqingren.



LEGOImageCropper

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

LEGOImageCropper is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'LEGOImageCropper'

LEGOImageCropper is the picture cropper, support to resizeWHScale, set size, rotate angle, fine adjust angle, crop product image. 图片裁剪,支持大小缩放,设置大小,旋转角度,微调角度,裁剪产品图片。

⚠️⚠️⚠️ WARNING ⚠️⚠️⚠️ LEGOImageCropper is still in BETA. Everything in this library is tested and working, and is used in the official project app, but there may still be unexpected results. Please, be careful. 这个库中的所有内容都经过了测试和工作,并在正式的项目应用程序中使用,但可能仍然会有意外的结果。拜托,小心点。

Features

  • Resize WH Scale. 缩放尺寸
  • Allow two fingers rotate angle freely. 双指调整缩放旋转
  • rotate angle by control. 角度外部控制
  • Angle fine tuning. 角度微调
  • Double click to reset picture. 双击重置

Demonstration

image

Requirements

  • iOS 8.0+
  • Xcode 10.0+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate LEGOImageCropper into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'LEGOImageCropper'

Manually

If you prefer not to use any of the dependency mentioned above, you can integrate LEGOImageCropper into your project manually. Just drag & drop the Sources folder to your project.

Usage

/** crop picture 裁剪方法实例 */

    [self.imageCropperView cropImageWithComplete:^(UIImage *resizeImage) {
        NSLog(@"resizeImage=%@",resizeImage);
    }];
    

For details, see example for LEGOImageCropper.

Author

[email protected], [email protected]

License

LEGOImageCropper is available under the MIT license. See the LICENSE file for more info.