All Projects → ZaidPathan → Zimagecropper

ZaidPathan / Zimagecropper

Licence: mit
A Swift 5 repo to crop image in any shape.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Zimagecropper

Dragscalecircleview
a custom view that provides dragged and scaled
Stars: ✭ 513 (+194.83%)
Mutual labels:  crop-image
Smartcircle
✂️Automatically determine where to crop a circular image out of a rectangular.
Stars: ✭ 29 (-83.33%)
Mutual labels:  crop-image
Bimg
Go package for fast high-level image processing powered by libvips C library
Stars: ✭ 1,394 (+701.15%)
Mutual labels:  crop-image
Imagepicker
📸Image Picker for Android, Pick an image from Gallery or Capture a new image with Camera
Stars: ✭ 623 (+258.05%)
Mutual labels:  crop-image
Croppy
Image Cropping Library for Android
Stars: ✭ 906 (+420.69%)
Mutual labels:  crop-image
Tiny Site
图片优化
Stars: ✭ 65 (-62.64%)
Mutual labels:  crop-image
Mort
Storage and image processing server written in Go
Stars: ✭ 420 (+141.38%)
Mutual labels:  crop-image
Edge detection
This is a flutter plugin to detect edges in a live camera, take the picture of detected edges object, crop it, and save.
Stars: ✭ 116 (-33.33%)
Mutual labels:  crop-image
React Cropper
react cropper
Stars: ✭ 13 (-92.53%)
Mutual labels:  crop-image
Comurimagebundle
Image upload / crop bundle for Symfony2
Stars: ✭ 103 (-40.8%)
Mutual labels:  crop-image
Mmcamscanner
Simulation of CamScanner app With Custom Camera and Crop Rect Validation
Stars: ✭ 728 (+318.39%)
Mutual labels:  crop-image
Ksnip
ksnip the cross-platform screenshot and annotation tool
Stars: ✭ 776 (+345.98%)
Mutual labels:  crop-image
Svelte Easy Crop
A Svelte component to crop images with easy interactions
Stars: ✭ 80 (-54.02%)
Mutual labels:  crop-image
Glimpse Android
A content-aware cropping library for Android
Stars: ✭ 579 (+232.76%)
Mutual labels:  crop-image
React Cropper
Cropperjs as React component
Stars: ✭ 1,600 (+819.54%)
Mutual labels:  crop-image
Imgproxy
Fast and secure standalone server for resizing and converting remote images
Stars: ✭ 5,688 (+3168.97%)
Mutual labels:  crop-image
React Easy Crop
A React component to crop images/videos with easy interactions
Stars: ✭ 1,093 (+528.16%)
Mutual labels:  crop-image
Vuejs Clipper
Vue.js image clipping components using Vue-Rx.
Stars: ✭ 161 (-7.47%)
Mutual labels:  crop-image
Krop
Small widget for image cropping in Instagram-like style
Stars: ✭ 107 (-38.51%)
Mutual labels:  crop-image
Svg Autocrop
🚗🌽🔳An NPM module to autocrop and slim down SVGs
Stars: ✭ 80 (-54.02%)
Mutual labels:  crop-image

ZImageCropper

CI Status Version License Platform

ZImageCropper is a simplest way to crop image to any shapes you like.

alt ZImageCropper

Example

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

Requirements

Installation

Cocoapods

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

pod 'ZImageCropper'

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into Xcode and the Swift compiler.

If you are using Xcode 11 or later:

  1. Click File
  2. Swift Packages
  3. Add Package Dependency...
  4. Specify the git URL for ZImageCropper.
https://github.com/ZaidPathan/ZImageCropper

Manual

Add ZImageCropper.swift and ZImageCropperView.swift files to your project.

Usage

Crop using AI (Or programmatically)

Crop image using following code,

let croppedImage = ZImageCropper.cropImage(ofImageView: yourImageView, withinPoints: [
CGPoint(x: 0, y: 0),   //Start point
CGPoint(x: 100, y: 0),
CGPoint(x: 100, y: 100),
CGPoint(x: 0, y: 100)  //End point
])

Note : Make sure you provide valid points, points must be >=2 in count.

Crop using user touches,

Step 1: Add UIImageView to your StoryBoard/XIB and give it a Class Name: ZImageCropperView

Step 2: Run the app and see cropping is enable to your UIImageView

Step 3: Add @IBOutlet of your UIImageView and call method imageView.cropImage() to crop selected layer by user.

Author

Zaid Pathan

Contributor

Zaid Pathan, Devansh Vyas

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].