All Projects → pavankataria → ChopChop

pavankataria / ChopChop

Licence: MIT License
Chop an image to as many quadrants as you like at compile time. Great for dynamic content, suitable for games and image processing. Image matrix

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to ChopChop

Tocropviewcontroller
A view controller for iOS that allows users to crop portions of UIImage objects
Stars: ✭ 4,210 (+29971.43%)
Mutual labels:  uiimage, crop-image
Ios Imagezoomviewer
ImageZoomViewer is a simple to use Objective C framework that allows the capability of viewing images with zoom-in zoom-out functionality.
Stars: ✭ 14 (+0%)
Mutual labels:  uiimage, uiimageview
Asyncimage
Asynchronous Image Loading from URL in SwiftUI
Stars: ✭ 139 (+892.86%)
Mutual labels:  uiimage, uiimageview
PhotoSelectAndCrop
This package integrates a UIImagePickerController into a SwiftUI app. Obtain 1) a copy of the original image, 2) a scaled and / or cropped version of it, 3) a CGFloat and 4) CGPoint. The CGFloat and CGPoint represent the scale and position of the original image used to make the processed version.
Stars: ✭ 57 (+307.14%)
Mutual labels:  crop-image
LyEditImageView
iOS Image Editor View
Stars: ✭ 20 (+42.86%)
Mutual labels:  crop-image
AutomaticNeuralImageCropper
Neural network making the best looking crops of images
Stars: ✭ 28 (+100%)
Mutual labels:  crop-image
pdf-scripts
📑 Scripts to repair, verify, OCR, compress, wrangle, crop (etc.) PDFs
Stars: ✭ 33 (+135.71%)
Mutual labels:  crop-image
xcrop
Mobile image cropping component - Vue React 移动端裁剪组件
Stars: ✭ 27 (+92.86%)
Mutual labels:  crop-image
imagor
Fast, Docker-ready image processing server in Go and libvips
Stars: ✭ 2,276 (+16157.14%)
Mutual labels:  crop-image
WAProfileImage
WAProfileImage - A library for Android for choosing and editing profile image like WhatsApp
Stars: ✭ 29 (+107.14%)
Mutual labels:  crop-image
NetworkImage
Asynchronous image loading in SwiftUI
Stars: ✭ 39 (+178.57%)
Mutual labels:  uiimage
KBImageView
UIImageView with Ken Burns effect.
Stars: ✭ 48 (+242.86%)
Mutual labels:  uiimage
vue-crop-image-mobile
cut the picture for the mobile end.
Stars: ✭ 16 (+14.29%)
Mutual labels:  crop-image
SKArchCutter
SKArchCutter是一个可自选切割角的圆角切割工具,同时支持UIView、UIImageView、UIButton和UILabel的单角切圆/选角拱形切圆/全角切圆,并且避免了UIImageView使用系统圆角所导致的离屏渲染的问题,以及确保layer对象的masksToBounds属性始终为NO,从而使得项目中大量使用圆角时的性能得到很大程度的优化, 最重要的是使用简单、方便。
Stars: ✭ 80 (+471.43%)
Mutual labels:  uiimage
SPPhotoViewer
A customisable smart photoviewer of your photos!!!
Stars: ✭ 14 (+0%)
Mutual labels:  uiimage
AnyImageKit
A toolbox for pick/edit/capture photo or video. Written in Swift.
Stars: ✭ 580 (+4042.86%)
Mutual labels:  crop-image
yii2-widget-cropbox
This widget allows crop image before upload to server and send informations about crop in JSON format.
Stars: ✭ 90 (+542.86%)
Mutual labels:  crop-image
UIImageViewWithWords
Create UIImageView with words in Swift
Stars: ✭ 89 (+535.71%)
Mutual labels:  uiimageview
uiimage-additions
A collection of miscellaneous utility methods for UIImage for memory-efficient image transformations.
Stars: ✭ 21 (+50%)
Mutual labels:  uiimage
Hola
Light-weight Onboard/Walkthrough UIView/UIImage representer ⏪ & ⏩ ⏫ & ⏬
Stars: ✭ 40 (+185.71%)
Mutual labels:  uiimage

ChopChop

Description

Chop an image to as many quadrants as you like at compile time. Suitable for games and image processing.

Great for dynamic content, s

Here's what you can do with this package:

  • You can crop an image into a square
  • You can crop an image into as many quadrants as you like, by specifying the number of rows and columns, a matrix.

Screenshots of Demo


Demo

A demo is available which allows you:

  • to pick an image,
  • specify your matrix
  • and view your chopped up image into a nice collection view

Installation

There isn't a cocoapod for this package as of today, didn't have the time to do so just yet. For now, simply dragging the single source file into your project is all that's required.

How to use

You simply have an instance of a UIImage you loaded yourself, from somewhere, anywhere:

    var myImage = UIImage(imageNamed:"maybe from the assets, or the image picker class")

Define and instantiate an array which will hold your cropped UIImages

    var images = [UIImage]()

You can either crop your image into a nice square

    var profileImageView.image = myImage.cropToSquare()

Or if you want to make a game or something and require your images to be cropped up into equal quadrants then simply pass a matrix into the cropWithMatrix method. You need to insert a tuple which consists of two ints which are attributed to rows and columns.

        let rowsNum = 2
        let colsNum = 2
        images = image.cropWithMatrix((rowsNum, colsNum))

You'll then get your very own images array which contains your cropped/chopped up image.

To-dos

  • Implement background processing within the package
  • Add more helper functions to the PKImageMatrixCropper
  • Write Tests

Roadmap

  • We are open to new and awesome ideas, contribute if you like! :)

Contribute

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create pull request

License

ChopChop is available under the MIT license.

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