• Stars
    star
    534
  • Rank 83,095 (Top 2 %)
  • Language
    Swift
  • License
    MIT License
  • Created almost 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A powerful image editor framework. Supports graffiti, cropping, mosaic, text stickers, image stickers, filters.

Version Carthage compatible SwiftPM compatible License Platform Language


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.

Directory

Features

  • Draw (Support custom line color).
  • Crop (Support custom crop ratios).
  • Image sticker (Support custom image sticker container view).
  • Text sticker (Support custom text color).
  • Mosaic.
  • Filter (Support custom filters).
  • Adjust (Brightness, Contrast, Saturation).

Requirements

  • iOS 9.0
  • Swift 5.x
  • Xcode 12.x

Usage

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

● 1.1.7
  Add:
    Add max scaling for stickers.
● 1.1.6
  Add:
    Add horizontal adjust slider.
    Support Ukrainian.
● 1.1.5
  Add:
    Update localization files for German.
    Support content wrapping for text sticker.
...

Languages

🇨🇳 Chinese (Simplified/Traditional), 🇺🇸 English, 🇯🇵 Japanese, 🇫🇷 French, 🇩🇪 German, 🇺🇦 Ukranian, 🇷🇺 Russian, 🇻🇳 Vietnamese, 🇰🇷 Korean, 🇲🇾 Malay, 🇮🇹 Italian, 🇮🇩 Indonesian, 🇪🇸 Spanish, 🇵🇹 Portuguese, 🇹🇷 Turkey , Arabic

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, '9.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 "4.0.9" 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

image

More Repositories

1

ZLPhotoBrowser

Wechat-like image picker. Support select photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
Swift
4,755
star
2

WritingEffect

将字符串转换为UIBezierPath,并通过CAShapeLayer及layer动画实现动态书写效果
Objective-C
132
star
3

LocalNotification

玩转推送通知,实现各种推送快捷操作及回复功能
Objective-C
121
star
4

BackgroundLocation

后台持续定位,并间隔时间内向服务器上传定位信息工具
Objective-C
68
star
5

ZLPhotoBrowser-objc

(ZLPhotoBrowser oc 版本)轻量级照片选择框架,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑裁剪图片/视频,支持多语言国际化等功能
Objective-C
62
star
6

TagList

多功能标签
Objective-C
48
star
7

ZLFlowChart

实用流程图,多种动画效果
Objective-C
33
star
8

QRScan

二维码/条形码扫描,环境光感应
Objective-C
16
star
9

GPSLocationPicker

多功能定位,可自定义定位时长,有效精度和有效距离等。可根据用户设置是否显示GPS定位详情
Objective-C
12
star
10

AutoCarouselImages

自动轮播图片
Objective-C
5
star
11

WeekCalendarView

周历控件
Objective-C
4
star
12

JinnLock

A gesture unlock view controller for iPhone and iPad by jinnchang.
Objective-C
2
star
13

ImageFolder

2
star
14

ToastView

一个简单封装的toast提示视图
Objective-C
1
star
15

H5-Native-RequestLocation

之前写的一个iOS项目中加载html,html通过geolocation调用定位的代码。大家想要demo,就传一个。
Objective-C
1
star