https://github.com/longitachi/zlimageeditor
A powerful image editor framework. Supports graffiti, cropping, mosaic, text stickers, image stickers, filters.
https://github.com/longitachi/zlimageeditor
crop draw filter graffiti image-editor image-sticker mosaic text-sticker
Last synced: about 1 year ago
JSON representation
A powerful image editor framework. Supports graffiti, cropping, mosaic, text stickers, image stickers, filters.
- Host: GitHub
- URL: https://github.com/longitachi/zlimageeditor
- Owner: longitachi
- License: mit
- Created: 2020-11-23T07:22:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-26T11:47:32.000Z (almost 2 years ago)
- Last Synced: 2025-04-03T17:12:59.205Z (about 1 year ago)
- Topics: crop, draw, filter, graffiti, image-editor, image-sticker, mosaic, text-sticker
- Language: Swift
- Homepage:
- Size: 946 KB
- Stars: 563
- Watchers: 7
- Forks: 103
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://cocoapods.org/pods/ZLImageEditor)
[](https://github.com/Carthage/Carthage)
[](https://swift.org/package-manager/)
[](https://raw.githubusercontent.com/longitachi/ZLImageEditor/master/LICENSE)
[](https://img.shields.io/badge/Platforms-iOS-blue?style=flat)


---------------
ZLImageEditor is a powerful image editor framework. Supports graffiti, cropping, mosaic, text stickers, picture stickers, filters, adjust(brightness, contrast, saturation).
ZLImageEditor is extracted from [ZLPhotoBrowser](https://github.com/longitachi/ZLPhotoBrowser).
### Directory
* [Features](#Features)
* [Requirements](#Requirements)
* [Usage](#Usage)
* [Change Log](#ChangeLog)
* [Languages](#Languages)
* [Installation(Support Cocoapods/Carthage/SPM)](#Installation)
* [Support](#Support)
* [Demo Effect](#DemoEffect)
### Features
- [x] Draw (Support custom line color).
- [x] Crop (Support custom crop ratios).
- [x] Image sticker (Support custom image sticker container view).
- [x] Text sticker (Support custom text color).
- [x] Mosaic.
- [x] Filter (Support custom filters).
- [x] Adjust (Brightness, Contrast, Saturation).
### Requirements
| v >= 2.0.0 | iOS 10.0+ |
| --- | --- |
| v \< 2.0.0 | iOS 9.0+ |
* Swift 5.x
* Xcode 12.x
### Usage
```swift
ZLImageEditorConfiguration.default()
.editImageTools([.draw, .clip, .imageSticker, .textSticker, .mosaic, .filter, .adjust])
.adjustTools([.brightness, .contrast, .saturation])
ZLEditImageViewController.showEditImageVC(parentVC: self, image: image, editModel: editModel) { [weak self] (resImage, editModel) in
// your code
}
```
### Change Log
> [More logs](https://github.com/longitachi/ZLImageEditor/blob/master/CHANGELOG.md)
```
● 2.0.4
Add:
Added a callback for cancelling editing.
● 2.0.3
Add:
Enhance the user experience of the image cropping interface and optimize the animation effects.
Fix:
Fix the bug that causes a crash when entering the cropping interface while the app only supports landscape mode.
● 2.0.2
Add:
Adapt the text sticker input interface for iPad landscape mode.
Fix:
Fix the bug where cropping square images to circular shape fails.
...
```
### Languages
🇨🇳 Chinese (Simplified/Traditional), 🇺🇸 English, 🇯🇵 Japanese, 🇫🇷 French, 🇩🇪 German, 🇺🇦 Ukranian, 🇷🇺 Russian, 🇻🇳 Vietnamese, 🇰🇷 Korean, 🇲🇾 Malay, 🇮🇹 Italian, 🇮🇩 Indonesian, 🇪🇸 Spanish, 🇵🇹 Portuguese, 🇹🇷 Turkey, 🇸🇦 Arabic, 🇳🇱 Dutch.
### Installation
There are four ways to use ZLImageEditor in your project:
- using CocoaPods
- using Carthage
- using Swift Package Manager
- manual install (build frameworks or embed Xcode Project)
#### CocoaPods
To integrate ZLImageEditor into your Xcode project using CocoaPods, specify it to a target in your Podfile:
```
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'MyApp' do
# your other pod
# ...
pod 'ZLImageEditor'
end
```
Then, run the following command:
```
$ pod install
```
> If you cannot find the latest version, you can execute `pod repo update` first
#### Carthage
To integrate ZLImageEditor into your Xcode project using Carthage, specify it in your Cartfile:
```
github "longitachi/ZLImageEditor"
```
Then, run the following command to build the ZLImageEditor framework:
```
$ carthage update ZLImageEditor
```
#### Swift Package Manager
1. Select File > Swift Packages > Add Package Dependency. Enter https://github.com/longitachi/ZLImageEditor.git in the "Choose Package Repository" dialog.
2. In the next page, specify the version resolving rule as "Up to Next Major" with "2.0.4" as its earliest version.
3. After Xcode checking out the source and resolving the version, you can choose the "ZLImageEditor" library and add it to your app target.
### Support
* [**★ Star**](#) this repo.
* Support with
or
or 
### Demo Effect
