{"id":17440474,"url":"https://github.com/twhitbeck/angular-cropper","last_synced_at":"2025-04-21T22:31:40.238Z","repository":{"id":20390437,"uuid":"23666226","full_name":"twhitbeck/angular-cropper","owner":"twhitbeck","description":"Touch-enabled image cropper for AngularJS","archived":false,"fork":false,"pushed_at":"2017-08-31T11:57:30.000Z","size":11,"stargazers_count":24,"open_issues_count":4,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-19T19:54:23.677Z","etag":null,"topics":["angular","cropper"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/twhitbeck.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-09-04T14:40:46.000Z","updated_at":"2021-05-03T15:22:33.000Z","dependencies_parsed_at":"2022-07-31T18:19:01.083Z","dependency_job_id":null,"html_url":"https://github.com/twhitbeck/angular-cropper","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twhitbeck%2Fangular-cropper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twhitbeck%2Fangular-cropper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twhitbeck%2Fangular-cropper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twhitbeck%2Fangular-cropper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twhitbeck","download_url":"https://codeload.github.com/twhitbeck/angular-cropper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223881358,"owners_count":17219265,"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":["angular","cropper"],"created_at":"2024-10-17T14:49:10.371Z","updated_at":"2024-11-09T20:36:40.425Z","avatar_url":"https://github.com/twhitbeck.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"angular-cropper\n===============\n\n\u003e Touch-enabled image cropper for AngularJS\n\n[Demo](http://plnkr.co/edit/s96ZCYmP5ELtqdIMieKC?p=preview)\n\n### Get it\n```sh\n$ bower install angular-cropper\n```\n\nor\n\n```sh\n$ npm install angular-cropper\n```\n\n### Use it\n* Include files in your html\n  * `bower_components/angular-file-reader/angular-file-reader.js`\n  * `bower_components/angular-cropper/angular-cropper.js`\n* Include `tw.directives.cropper` in your module dependencies\n  * `angular.module('myApp', ['tw.directives.cropper']);`\n* Place the `tw-cropper` attribute on a canvas\n  * `\u003ccanvas width=\"300\" height=\"300\" tw-cropper=\"cropper\"\u003e\u003c/canvas\u003e`\n* Give your cropper a `source`\n  * `\u003ccanvas width=\"300\" height=\"300\" tw-cropper=\"cropper\" source=\"myFile\"\u003e\u003c/canvas\u003e`\n  * `source` must be a File\n  * See the demo for one way to get a File to your scope\n  * Or use [twhitbeck/angular-file-input](https://github.com/twhitbeck/angular-file-input)\n* Get the dataURL of your crop with controller `toDataURL` method\n  * `\u003cbutton ng-click=\"upload(cropper.toDataURL())\"\u003eSave\u003c/button\u003e`\n* That's it!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwhitbeck%2Fangular-cropper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwhitbeck%2Fangular-cropper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwhitbeck%2Fangular-cropper/lists"}