Skip to content
Drag, Rotate, Scale and Crop
Branch: master
Clone or download
Latest commit 94aa656 Dec 21, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
PhotoTweaks.xcodeproj Update travis version Dec 21, 2017
PhotoTweaks Update travis version Dec 21, 2017
.gitignore Add icon Mar 6, 2015
.travis.yml Change Travis config Dec 21, 2017
LICENSE Initial commit Nov 28, 2014


PhotoTweaks is an interface to crop photos. It can let user drag, rotate, scale the image, and crop it. You will find it mimics the interaction of on iOS 8. :]

Pod Version Platform License


PhotoTweaksViewController offers all the operations to crop the photo, which includes translation, rotate and scale.

To use it,

UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
PhotoTweaksViewController *photoTweaksViewController = [[PhotoTweaksViewController alloc] initWithImage:image];
photoTweaksViewController.delegate = self;
photoTweaksViewController.autoSaveToLibray = YES;
photoTweaksViewController.maxRotationAngle = M_PI_4;
[picker pushViewController:photoTweaksViewController animated:YES];

maxRotationAngle is the property to set the maximum supported rotation angle.

Get the cropped image

- (void)photoTweaksController:(PhotoTweaksViewController *)controller didFinishWithCroppedImage:(UIImage *)croppedImage
    [controller.navigationController dismissViewControllerAnimated:YES completion:nil];
    // cropped image


PhotoTweaks is available on CocoaPods. Add the follwing to your Podfile:

pod 'PhotoTweaks', '~> 1.0.4'

Alternatively, you can manually drag the PhotoTweaks folder into your Xcode project.

A Quick Peek



If using with an existing UIImagePickerController, be sure to set allowsEditing = NO otherwise you may force the user to crop with the native editing tool before showing PhotoTweaksViewController.

You can’t perform that action at this time.