Skip to content

virtualspirit/ZLImageEditor

 
 

Repository files navigation

Version SwiftPM compatible License Platform Language

A powerful iOS image editor framework. Supports drawing, cropping, mosaic, text stickers, image stickers, filters, and image adjustments.

Forked from longitachi/ZLImageEditor with customizations for use via rn-photo-editor.


Features

  • Draw (custom line color, width, style)
  • Crop (free-style and custom ratios)
  • Image sticker (custom sticker container view)
  • Text sticker (custom text color and font)
  • Mosaic
  • Filter (custom filters)
  • Adjust (Brightness, Contrast, Saturation)
  • Undo / Redo for all operations

Requirements

Version iOS
v >= 2.0.0 iOS 10.0+
v < 2.0.0 iOS 9.0+
  • Swift 5.x
  • Xcode 12.x+

Installation

CocoaPods

pod 'ZLImageEditor', :git => 'https://github.com/virtualspirit/ZLImageEditor.git', :tag => '3.0.6'

Then run:

pod install

Swift Package Manager

  1. File > Add Package Dependencies
  2. Enter: https://github.com/virtualspirit/ZLImageEditor.git
  3. Set version rule to Up to Next Major starting from 3.0.6

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
    // resImage: edited UIImage
    // editModel: ZLEditImageModel for re-editing
}

Languages

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


License

MIT

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Swift 98.7%
  • Other 1.3%