{"id":18222465,"url":"https://github.com/dehwyy/svelte-cropper","last_synced_at":"2025-06-21T09:05:30.601Z","repository":{"id":218558411,"uuid":"746722272","full_name":"dehwyy/svelte-cropper","owner":"dehwyy","description":"🔎Cropper for Svelte","archived":false,"fork":false,"pushed_at":"2024-05-27T12:54:04.000Z","size":98,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-21T09:05:10.821Z","etag":null,"topics":["cropperjs","svelte","sveltekit"],"latest_commit_sha":null,"homepage":"https://svelte-cropper.vercel.app","language":"Svelte","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/dehwyy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-22T14:47:34.000Z","updated_at":"2025-01-31T23:19:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"dce304b7-0874-489c-be91-863f848be72b","html_url":"https://github.com/dehwyy/svelte-cropper","commit_stats":null,"previous_names":["dehwyy/svelte-cropper"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dehwyy/svelte-cropper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehwyy%2Fsvelte-cropper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehwyy%2Fsvelte-cropper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehwyy%2Fsvelte-cropper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehwyy%2Fsvelte-cropper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dehwyy","download_url":"https://codeload.github.com/dehwyy/svelte-cropper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehwyy%2Fsvelte-cropper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261095307,"owners_count":23108782,"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":["cropperjs","svelte","sveltekit"],"created_at":"2024-11-03T23:04:28.429Z","updated_at":"2025-06-21T09:05:25.589Z","avatar_url":"https://github.com/dehwyy.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `SvelteCropper`\r\n\r\nCropperJS component for Svelte.\r\n\r\n## Example\r\n\r\n```svelte\r\n\u003cscript lang=\"ts\"\u003e\r\n    import { Cropper, type CropperInstance, type CropperDefaultProps } from \"svelte-cropper\"\r\n    \r\n    let cropper: CropperInstance | null = null\r\n    \r\n    let image_src = \"https://svelte-cropper.vercel.app/ok.jpg\"\r\n    \r\n    const cropper_props: CropperDefaultProps = {\r\n        viewMode: 2, // necessary,\r\n        // optional\r\n        dragMode: \"crop\",\r\n        initialAspectRatio: 1 // not reactive as cropper initializes on component mount\r\n    }\r\n    \r\n\u003c/script\u003e\r\n\r\n\u003cCropper bind:cropper src={image_src} {cropper_props}/\u003e\r\n```\r\n\r\n[More examples](https://github.com/dehwyy/svelte-cropper/blob/master/src/routes)\r\n\r\n## Demo\r\n\r\n* [SvelteCropper](https://svelte-cropper.vercel.app/)\r\n* [CropperJS](https://fengyuanchen.github.io/cropperjs/)\r\n\r\n## Instalation\r\n\r\n```shell\r\npnpm add svelte-cropper\r\n```\r\n\r\n## Options\r\n\r\n* [CropperJS Docs](https://github.com/fengyuanchen/cropperjs#options)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdehwyy%2Fsvelte-cropper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdehwyy%2Fsvelte-cropper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdehwyy%2Fsvelte-cropper/lists"}