{"id":45253076,"url":"https://github.com/mwaqasbhati/wbimagecropper","last_synced_at":"2026-02-20T23:02:10.134Z","repository":{"id":56926190,"uuid":"46736055","full_name":"mwaqasbhati/WBImageCropper","owner":"mwaqasbhati","description":"An Innovative Image Cropper with which you can crop and adjust your profile pictures","archived":false,"fork":false,"pushed_at":"2018-10-02T05:45:33.000Z","size":4002,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-21T05:49:05.588Z","etag":null,"topics":["crop","editing","editing-capabilites","image","profile-picture","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/mwaqasbhati.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":"2015-11-23T17:16:32.000Z","updated_at":"2025-04-29T09:16:56.000Z","dependencies_parsed_at":"2022-08-20T22:50:19.175Z","dependency_job_id":null,"html_url":"https://github.com/mwaqasbhati/WBImageCropper","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mwaqasbhati/WBImageCropper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwaqasbhati%2FWBImageCropper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwaqasbhati%2FWBImageCropper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwaqasbhati%2FWBImageCropper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwaqasbhati%2FWBImageCropper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mwaqasbhati","download_url":"https://codeload.github.com/mwaqasbhati/WBImageCropper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwaqasbhati%2FWBImageCropper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29667119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T19:49:36.704Z","status":"ssl_error","status_checked_at":"2026-02-20T19:44:05.372Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","editing","editing-capabilites","image","profile-picture","swift"],"created_at":"2026-02-20T23:02:09.232Z","updated_at":"2026-02-20T23:02:10.120Z","avatar_url":"https://github.com/mwaqasbhati.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WBImageCropper\n\n[![Version](https://img.shields.io/cocoapods/v/WBImageCropper.svg?style=flat)](https://cocoapods.org/pods/WBImageCropper)\n[![License](https://img.shields.io/cocoapods/l/WBImageCropper.svg?style=flat)](https://cocoapods.org/pods/WBImageCropper)\n[![Platform](https://img.shields.io/cocoapods/p/WBImageCropper.svg?style=flat)](https://cocoapods.org/pods/WBImageCropper)\n\n\nWBImageCropper works for all type of input cropping mask and is implemented in Swift.*\n\n\n## About\n\nWBImageCropper will provide you image editing \u0026 cropping functionality by just calling a 2 line to code. It made things easy that was never before.\n\n## Background\n\nI have used many cropping tools but this library provides cropping stuff very user friendly.\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Usage\n\n- First Create a WBImageCropper Object with Image and Cropping Mask and then confirm to it's delegate\n  \n```swift\nlet croppingView = WBImageCropperVC(CGRect(x: 0, y: view.frame.size.height/2, width: view.frame.size.width, height: 200), image: UIImage(named: \"world\")!)\ncroppingView.delegate = self\npresent(croppingView, animated: true, completion: nil)\n```\n### ImageCropperDelegate \n\n```swift\nfunc pickedImageDidFinish(_ image: UIImage)\nfunc pickedImageDidCancel(_ image: UIImage?)\n```\n\n|             Square Mask         |         Rectangle Mask          |\n|---------------------------------|------------------------------|\n|![Demo](https://github.com/mwaqasbhati/WBImageCropper/blob/master/screenshots/square.png)|![Demo](https://github.com/mwaqasbhati/WBImageCropper/blob/master/screenshots/rectangle.png)|\n## Requirements\n\n- iOS 9.4\n- Swift 4.1\n\n## Installation\n\n### Manually\n\nDownload the Code and Copy the file -\u003e `WBImageCropper.swift` into your project. That's it.\n\n### CocoaPods\n\nWBImageCropper is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'WBImageCropper'\n```\n\n## Author\n\nmwaqasbhati, m.waqas.bhati@hotmail.com\n\n## License\n\nWBImageCropper is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwaqasbhati%2Fwbimagecropper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwaqasbhati%2Fwbimagecropper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwaqasbhati%2Fwbimagecropper/lists"}