{"id":22083650,"url":"https://github.com/komomoo/vue-slim-cropper","last_synced_at":"2025-07-24T16:31:08.469Z","repository":{"id":118717131,"uuid":"195803623","full_name":"komomoo/vue-slim-cropper","owner":"komomoo","description":"💇‍♀️ A simple and elegant mobile image crop upload component for Vue 2.x | 简洁易用的 vue 移动端图片裁剪上传组件","archived":false,"fork":false,"pushed_at":"2021-11-19T09:13:06.000Z","size":16621,"stargazers_count":40,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-17T05:28:09.358Z","etag":null,"topics":["image-clip","image-cropper","mobile-web","vue"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/komomoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-07-08T12:02:58.000Z","updated_at":"2024-06-17T05:28:09.359Z","dependencies_parsed_at":"2023-03-25T00:50:21.765Z","dependency_job_id":null,"html_url":"https://github.com/komomoo/vue-slim-cropper","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.07692307692307687,"last_synced_commit":"fec5be27fe04257a0c493ef752e66e803e5b0835"},"previous_names":["wannaxiao/vue-slim-cropper"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fvue-slim-cropper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fvue-slim-cropper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fvue-slim-cropper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fvue-slim-cropper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/komomoo","download_url":"https://codeload.github.com/komomoo/vue-slim-cropper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227457121,"owners_count":17777944,"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":["image-clip","image-cropper","mobile-web","vue"],"created_at":"2024-12-01T00:16:48.574Z","updated_at":"2024-12-01T00:16:49.512Z","avatar_url":"https://github.com/komomoo.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-slim-cropper\n\nEnglish | [简体中文](./README.zh-CN.md)\n\n## 🌰 Example\n\n\u003cimg src=\"./demo/assets/demo.gif\" width=\"320\" style=\"margin-top: 20px;\"\u003e\n\n\u003cimg src=\"./demo/assets/qrcode.png\" width=\"200\" style=\"margin-top: 20px;\"\u003e\n\n[Demo](https://komomoo.github.io/vue-slim-cropper/demo/dist/)\n\n[Demo Source Code](https://github.com/komomoo/vue-slim-cropper/blob/master/demo/App.vue)\n\n## 🚀 QuickStart\n\n1.  Install\n\n```bash\nyarn add vue-slim-cropper # OR npm i -S vue-slim-cropper\n```\n\n2.  Import\n\n```js\n// main.js\nimport SlimCropper from 'vue-slim-cropper'\nVue.use(SlimCropper)\n```\n\n3.  Usage. Please refer to the [Demo Source Code](https://github.com/komomoo/vue-slim-cropper/blob/master/demo/App.vue)\n\n```html\n\u003cSlimCropper ref=\"cropper\" :src=\"\"\u003e\u003c/SlimCropper\u003e\n```\n\n## 🔌 API\n\n### Props\n\n| Name           | Description                                                  | Type   | Default   |\n| -------------- | ------------------------------------------------------------ | ------ | --------- |\n| src            | image URL                                                    | String | undefined |\n| aspectRatio    | width / height ratio                                         | Number | 1         |\n| cropperOptions | cropperjs options: https://github.com/fengyuanchen/cropperjs | Object | null      |\n\n### Methods\n\n| Name           | Description                       | Parameters                       |\n| -------------- | --------------------------------- | -------------------------------- |\n| getCroppedBlob | get the cropped image blob object | type = 'image/jpeg', quality = 1 |\n\n---\n\n😉😘 If it is helpful to you，please encourage me with a \u003cb\u003e⭐️\u003ca href=\"#\"\u003eStar\u003c/a\u003e\u003c/b\u003e ~\n\n## [Changelog](./CHANGELOG.md)\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2018-present, komo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomomoo%2Fvue-slim-cropper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkomomoo%2Fvue-slim-cropper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomomoo%2Fvue-slim-cropper/lists"}