A Swift library for cropping images to any custom shape programmatically or via user interaction.
ZImageCropper is a Swift library that allows iOS developers to crop images into any custom polygon shape. It solves the need for flexible image cropping beyond standard rectangular crops, enabling both programmatic definition of cropping areas and interactive user-drawn shapes.
iOS developers building apps that require advanced image editing features, such as photo editors, social media apps, or utilities where users need to crop images into non-standard shapes.
Developers choose ZImageCropper for its simplicity and flexibility—it provides a straightforward API for custom shape cropping without the overhead of larger image processing libraries, and it supports both programmatic and interactive cropping modes.
A Swift 5 repo to crop image in any shape.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports cropping to any polygon shape by providing an array of CGPoints, as shown in the example code with points from (0,0) to (100,100) for a square.
Allows users to draw custom cropping areas directly on a UIImageView through touch gestures, enabling intuitive in-app editing without complex UI setup.
Offers multiple installation methods via Cocoapods, Swift Package Manager, or manual file addition, with simple API calls like ZImageCropper.cropImage().
Focuses on core cropping functionality with a small code footprint, avoiding bloat and making it quick to implement for basic needs.
The README provides only basic examples and lacks comprehensive API documentation, error handling guidance, or troubleshooting tips for edge cases.
Missing built-in support for common image editing tools like undo/redo, shape smoothing, predefined templates, or integration with other image processing libraries.
Designed solely for iOS, making it unsuitable for cross-platform projects or applications targeting macOS, where alternative solutions would be needed.