{"id":13993291,"url":"https://github.com/itouch2/PhotoTweaks","last_synced_at":"2025-07-22T17:31:51.746Z","repository":{"id":23869628,"uuid":"27248274","full_name":"itouch2/PhotoTweaks","owner":"itouch2","description":"Drag, Rotate, Scale and Crop","archived":false,"fork":false,"pushed_at":"2021-02-27T02:23:07.000Z","size":970,"stargazers_count":1260,"open_issues_count":14,"forks_count":164,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-06-23T18:02:41.400Z","etag":null,"topics":["crop","drag","objective-c","photos"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itouch2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-28T02:12:33.000Z","updated_at":"2025-06-20T03:01:46.000Z","dependencies_parsed_at":"2022-08-22T06:10:44.708Z","dependency_job_id":null,"html_url":"https://github.com/itouch2/PhotoTweaks","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/itouch2/PhotoTweaks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itouch2%2FPhotoTweaks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itouch2%2FPhotoTweaks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itouch2%2FPhotoTweaks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itouch2%2FPhotoTweaks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itouch2","download_url":"https://codeload.github.com/itouch2/PhotoTweaks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itouch2%2FPhotoTweaks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266538819,"owners_count":23944903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crop","drag","objective-c","photos"],"created_at":"2024-08-09T14:02:18.858Z","updated_at":"2025-07-22T17:31:51.446Z","avatar_url":"https://github.com/itouch2.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://cloud.githubusercontent.com/assets/4316898/6525211/cef0bbce-c43d-11e4-9b64-deb65c64c683.png\" height=\"200\"/\u003e\n\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003ePhotoTweaks\u003c/h1\u003e\n\nPhotoTweaks 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 Photos.app on iOS 8. :]\n\n[![Pod Version](http://img.shields.io/cocoapods/v/PhotoTweaks.svg?style=flat)](http://cocoapods.org/?q=PhotoTweaks)\n[![Platform](http://img.shields.io/cocoapods/p/PhotoTweaks.svg?style=flat)](http://cocoapods.org/?q=PhotoTweaks)\n[![License](http://img.shields.io/cocoapods/l/PhotoTweaks.svg?style=flat)](https://github.com/itouch2/PhotoTweaks/blob/master/LICENSE)\n\n## Usage\n\nPhotoTweaksViewController offers all the operations to crop the photo, which includes translation, rotate and scale.\n\nTo use it,\n\n```objective-c\nUIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];\nPhotoTweaksViewController *photoTweaksViewController = [[PhotoTweaksViewController alloc] initWithImage:image];\nphotoTweaksViewController.delegate = self;\nphotoTweaksViewController.autoSaveToLibray = YES;\nphotoTweaksViewController.maxRotationAngle = M_PI_4;\n[picker pushViewController:photoTweaksViewController animated:YES];\n```\n\n```maxRotationAngle``` is the property to set the maximum supported rotation angle.\n\nGet the cropped image\n```objective-c\n- (void)photoTweaksController:(PhotoTweaksViewController *)controller didFinishWithCroppedImage:(UIImage *)croppedImage\n{\n    [controller.navigationController dismissViewControllerAnimated:YES completion:nil];\n    // cropped image\n}\n```\n## Installation\nPhotoTweaks is available on [CocoaPods](http://cocoapods.org). Add the follwing to your Podfile:\n```ruby\npod 'PhotoTweaks', '~\u003e 1.0.4'\n```\nAlternatively, you can manually drag the ```PhotoTweaks``` folder into your Xcode project.\n\n\n## A Quick Peek\n\n![screenshots](https://cloud.githubusercontent.com/assets/4316898/6712965/84ab1d16-cdca-11e4-912a-f437bbb02d42.gif)\n\n## Protip\nIf 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitouch2%2FPhotoTweaks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitouch2%2FPhotoTweaks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitouch2%2FPhotoTweaks/lists"}