Skip to content

JKImagePicker is an image cropper and camera feature like Instagram. You can take square-sized photo from camera and also it comes with filters and some edits mode (Brightness, Constrast, Saturation....).

License

Notifications You must be signed in to change notification settings

jamesTheKid/JKImagePicker

Repository files navigation

JKImagePicker

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Swift 3.2

iOS 9

Installation

JKImagePicker is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'JKImagePicker'

Features

  • Load all photos from Photo library
  • Select which library photos to load
  • Zoom-in and zoom-out with Gestures
  • Zoom-in and zoom-out button like instagram
  • Grid view while editing/touch begins
  • Crop Image while maintaining aspect ratio of image
  • Crop Image With original image resolution
  • Take square-sized image with camera

JKImagePicker Usage

Import JKImagePicker import JKImagePicker then use the following :

let imagePicker = JKImagePickerViewController()
imagePicker = self
self.present(self.imagePicker!, animated: true, completion: nil)

Delegate methods

// Return the image which is selected from library or taken with the camera.
func didFinishPickingPhoto(image: UIImage) {

print("image picked")

}

// Called after click on cancel button.
func didCancelPickingPhoto() {

print("Cancel button clicked")
}

TO-DO

  • Swift 4 support
  • Add filters
  • Add Edits (Brightness, Contrast, Saturation...)
  • Make all the components configurable

Author

Jimmy Kumako , https://twitter.com/jamesthakid

License

JKImagePicker is available under the MIT license. See the LICENSE file for more info.

Special Credits

This project is based on Fahid Attique project FAImageCropper - https://github.com/fahidattique55/FAImageCropper

About

JKImagePicker is an image cropper and camera feature like Instagram. You can take square-sized photo from camera and also it comes with filters and some edits mode (Brightness, Constrast, Saturation....).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published