All Projects → d-dotsenko → Ddperspectivetransform

d-dotsenko / Ddperspectivetransform

Licence: mit
🔲 Warp image transformation

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Ddperspectivetransform

Rskimagecropper
An image cropper / photo cropper for iOS like in the Contacts app with support for landscape orientation.
Stars: ✭ 2,371 (+1174.73%)
Mutual labels:  image, crop, photo
Ucrop
Image Cropping Library for Android
Stars: ✭ 11,003 (+5815.59%)
Mutual labels:  image, crop, photo
Tkimageview
An easy way to crop an image.
Stars: ✭ 342 (+83.87%)
Mutual labels:  image, crop, photo
Cropiwa
📐 Configurable Custom Crop widget for Android
Stars: ✭ 2,185 (+1074.73%)
Mutual labels:  image, crop, photo
Flutter image cropper
A Flutter plugin for Android and iOS supports cropping images
Stars: ✭ 723 (+288.71%)
Mutual labels:  image, crop, photo
Lipo
👄 Free image manipulation API service built on top of Sharp (an alternative to Jimp, Graphics Magic, Image Magick, and PhantomJS)
Stars: ✭ 101 (-45.7%)
Mutual labels:  image, crop
Bimg
Go package for fast high-level image processing powered by libvips C library
Stars: ✭ 1,394 (+649.46%)
Mutual labels:  image, crop
Hxphotopicker
图片/视频选择器 - 支持LivePhoto、GIF图片选择、3DTouch预览、在线下载iCloud上的资源、编辑图片/视频、浏览网络图片 功能 Imitation wx photo/image picker - support for LivePhoto, GIF image selection, 3DTouch preview, Download the resources on iCloud online, browse the web image function
Stars: ✭ 2,363 (+1170.43%)
Mutual labels:  image, photo
Lilliput
Resize images and animated GIFs in Go
Stars: ✭ 1,690 (+808.6%)
Mutual labels:  image, crop
Mrthumb
【拇指先生】 a simple easy video thumbnail provider,顺滑的获取视频缩略图,支持本地和网络视频,有问题大胆提Issues
Stars: ✭ 60 (-67.74%)
Mutual labels:  image, photo
Flutter crop
Crop any widget/image in Android, iOS, Web and Desktop with fancy and customizable UI, in pure Dart code.
Stars: ✭ 107 (-42.47%)
Mutual labels:  image, crop
Stfalconimageviewer
A simple and customizable Android full-screen image viewer with shared image transition support, "pinch to zoom" and "swipe to dismiss" gestures
Stars: ✭ 1,734 (+832.26%)
Mutual labels:  image, photo
Docker Nginx Image Proxy
on the fly image cropping with gravity, resize and compression microservice
Stars: ✭ 79 (-57.53%)
Mutual labels:  image, crop
Nova Advanced Image Field
🌄📐 A Laravel Nova advanced image field with cropping and resizing using Cropper.js and Intervention Image
Stars: ✭ 67 (-63.98%)
Mutual labels:  image, crop
Vscam
Photography, Communication & Share - Minimalist picture sharing app.
Stars: ✭ 105 (-43.55%)
Mutual labels:  image, photo
Imageselector
图片选择器, 支持多图选择和图片预览
Stars: ✭ 62 (-66.67%)
Mutual labels:  image, photo
Gimage
A PHP library for easy image handling. 🖼
Stars: ✭ 148 (-20.43%)
Mutual labels:  image, crop
React Avatar Editor
Small avatar & profile picture component. Resize and crop uploaded images using a intuitive user interface.
Stars: ✭ 1,846 (+892.47%)
Mutual labels:  image, crop
Croperino
📷 A simple image cropping tool that provides gallery or camera help for Native Android (Java)
Stars: ✭ 176 (-5.38%)
Mutual labels:  image, crop
Flutter image editor
Flutter plugin, support android/ios.Support crop, flip, rotate, color martix, mix image, add text. merge multi images.
Stars: ✭ 181 (-2.69%)
Mutual labels:  image, crop

DDPerspectiveTransform

Platform License Version Carthage compatible Swift 4.2

Warp image transformation

DDPerspectiveTransform

Installation

CocoaPods

To install DDPerspectiveTransform via CocoaPods, add the following line to your Podfile:

pod 'DDPerspectiveTransform'

After installing the cocoapod into your project import DDPerspectiveTransform with:

import DDPerspectiveTransform

Carthage

To install DDPerspectiveTransform via Carthage, add the following line to your Cartfile:

github "d-dotsenko/DDPerspectiveTransform"

And then run:

carthage update

Manually

Add DDPerspectiveTransform folder to your Xcode project.

Usage

See the example Xcode project.

Basic setup

Create the DDPerspectiveTransformViewController instance and set the image and delegate variables. Push/present it.

let cropViewController = DDPerspectiveTransformViewController() 
cropViewController.delegate = self 
cropViewController.image = image
navigationController?.pushViewController(cropViewController, animated: true)

Populating the data

Implement the following delegate methods:

func perspectiveTransformingDidFinish(controller: DDPerspectiveTransformViewController, croppedImage: UIImage)
func perspectiveTransformingDidCancel(controller: DDPerspectiveTransformViewController)

Customization

weak var delegate: DDPerspectiveTransformProtocol?
var image: UIImage? // The image for cropping
var padding: CGFloat? // Minimum padding value for all sides
var paddingWidth: CGFloat? // Minimum padding value for left and right sides
var paddingHeight: CGFloat? // Minimum padding value for top and bottom sides
var boxLineColor: UIColor? // The color of box lines
var boxLineWidth: CGFloat? // The width of box lines
var pointSize: CGSize? // The size of checkpoint
var pointColor: UIColor? // The color of checkpoint
var pointImage: UIImage? // The image of checkpoint

func cropAction()
func cancelAction()

Requirements

  • iOS 9.0
  • Xcode 10, Swift 4.2

License

DDPerspectiveTransform 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].