10

There are several questions (and answers) concerning cropping of images/photos within an iPhone app.

But I couldn't find an answer covering the common task of giving the user a rectangle which can be resized with a pinch gesture to letting him resize the area to cut.

You can find this functionality in many apps (Instagram, Twitter, etc...) most likely to cut a user photo to the right proportions. So I guess there are many people with the same problem.

Does anyone have code or tutorials to show how this task can be done?

j7nn7k
  • 17,995
  • 19
  • 78
  • 88
  • Hello. I have stucked to implement an ImageCropper to create it with 4:3 ratio based on width. [This is](http://ge.tt/4M9vgde1/v/0?c) what i have tried. But, no such output i got. Can you check this and tell me any idea? – Praveenkumar Apr 28 '14 at 12:08

4 Answers4

14

Try Below links for example project :

https://github.com/iosdeveloper/ImageCropper

https://github.com/barrettj/BJImageCropper

https://github.com/ardalahmet/SSPhotoCropperViewController

Dinesh
  • 6,500
  • 10
  • 42
  • 77
  • 2
    A combination of BJImageCropper and SSPhotoCropperViewController would be awsome! But both projects are good starting points. – j7nn7k Apr 18 '12 at 13:10
7

I made this one which combines elements from both mentioned.

https://github.com/nicholjs/BFCropInterface

nicholjs
  • 1,762
  • 18
  • 30
4

https://github.com/loveyiren208/XWEditPhotoDemo

try this one. I only found some project without ARC. So I decided to write a new one. It is similar with many applications when you change your profile photo.

user2547667
  • 231
  • 1
  • 3
  • 7
3

Try out this project: ardalahmet / SSPhotoCropperViewController

graver
  • 15,183
  • 4
  • 46
  • 62