{"id":20468830,"url":"https://github.com/xifenglang/jkimagecutter","last_synced_at":"2025-04-13T10:27:07.950Z","repository":{"id":56916071,"uuid":"83749641","full_name":"XiFengLang/JKImageCutter","owner":"XiFengLang","description":"\u003ciOS\u003e图片裁剪器，支持圆形、方形裁剪","archived":false,"fork":false,"pushed_at":"2019-04-04T17:21:25.000Z","size":2906,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T01:51:26.160Z","etag":null,"topics":["imagecropper","imagecutter","ios"],"latest_commit_sha":null,"homepage":null,"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/XiFengLang.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":"2017-03-03T02:46:59.000Z","updated_at":"2022-08-26T08:29:30.000Z","dependencies_parsed_at":"2022-08-20T20:50:37.078Z","dependency_job_id":null,"html_url":"https://github.com/XiFengLang/JKImageCutter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XiFengLang%2FJKImageCutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XiFengLang%2FJKImageCutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XiFengLang%2FJKImageCutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XiFengLang%2FJKImageCutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XiFengLang","download_url":"https://codeload.github.com/XiFengLang/JKImageCutter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248697440,"owners_count":21147327,"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","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":["imagecropper","imagecutter","ios"],"created_at":"2024-11-15T14:06:58.288Z","updated_at":"2025-04-13T10:27:07.931Z","avatar_url":"https://github.com/XiFengLang.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JKImageCutter\n通用型的图片裁剪器，支持圆形和方形裁剪，对长图、小图都有做兼容优化。\n\n## Example ##\n\u003cimg src=\"http://wx1.sinaimg.cn/mw690/c56eaed1gy1fetak02dwfj208w0gcn4j.jpg\" width=\"230\" height=\"400\"\u003e\u003cimg src=\"http://wx3.sinaimg.cn/mw690/c56eaed1gy1fetajze9zoj208w0gc422.jpg\" width=\"230\" height=\"400\"\u003e\n\n\n## CocoaPods\n\n```\npod 'JKImageCutter','~\u003e 1.0.3'\n```\n\n## Usage ##\n\n\n```Object-C\n    JKImageCutViewController * cutVC = [[JKImageCutViewController alloc] init];\n    cutVC.type = JKImageCutterTypeRounded; // JKImageCutterTypeSquare\n    [cutVC cutImage:[UIImage imageNamed:@\"img1.jpg\"] completionHandler:^(UIImage *image) {\n        self.imageView.image = image;\n    }];\n    [self.navigationController pushViewController:cutVC animated:YES];\n    \n```\n\n\n**不用担心Block会造成循环引用，内部已对Block进行优化**\n\n```Object-C\n\n\tif (self.completionHandler) {\n        self.completionHandler(image);\n        self.completionHandler = nil;\n   }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxifenglang%2Fjkimagecutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxifenglang%2Fjkimagecutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxifenglang%2Fjkimagecutter/lists"}