ZImageCropper alternatives and similar libraries
Based on the "Images" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of ZImageCropper or a related project?
ZImageCropper is a simplest way to crop image to any shapes you like.
To run the example project, clone the repo, and run
pod install from the Example directory first.
ZImageCropper is available through CocoaPods. To install it, simply add the following line to your Podfile:
ZImageCropperView.swift files to your project.
Crop using AI (Or programmatically)
Crop image using following code,
let croppedImage = ZImageCropper.cropImage(ofImageView: yourImageView, withinPoints: [ CGPoint(x: 0, y: 0), //Start point CGPoint(x: 100, y: 0), CGPoint(x: 100, y: 100), CGPoint(x: 0, y: 100) //End point ])
Note : Make sure you provide valid points, points must be >=2 in count.
Crop using user touches,
Step 1: Add
UIImageView to your
StoryBoard/XIB and give it a Class Name:
Step 2: Run the app and see cropping is enable to your
Step 3: Add
@IBOutlet of your
UIImageView and call method
imageView.cropImage() to crop selected layer by user.
ZImageCropper is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the ZImageCropper README section above are relevant to that project's source code only.