{"id":19250276,"url":"https://github.com/unburn/cropify","last_synced_at":"2025-04-21T12:32:50.050Z","repository":{"id":218088673,"uuid":"745557309","full_name":"unburn/cropify","owner":"unburn","description":"Crop and round image corners seamlessly.","archived":false,"fork":false,"pushed_at":"2024-05-28T07:38:49.000Z","size":5673,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-12T14:52:11.618Z","etag":null,"topics":["border-radius","canvas","crop","crop-canvas","crop-image","crop-images","cropify","unburn"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unburn.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-19T15:42:25.000Z","updated_at":"2024-06-10T20:29:13.000Z","dependencies_parsed_at":"2024-05-28T09:27:59.760Z","dependency_job_id":"b7817e85-9be5-43f2-9f75-a48e27bd410b","html_url":"https://github.com/unburn/cropify","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"8eaf9d668c2fed033f33302956630f6c17de0f48"},"previous_names":["unburn/cropify"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unburn%2Fcropify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unburn%2Fcropify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unburn%2Fcropify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unburn%2Fcropify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unburn","download_url":"https://codeload.github.com/unburn/cropify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250056189,"owners_count":21367502,"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":["border-radius","canvas","crop","crop-canvas","crop-image","crop-images","cropify","unburn"],"created_at":"2024-11-09T18:16:41.223Z","updated_at":"2025-04-21T12:32:49.738Z","avatar_url":"https://github.com/unburn.png","language":"TypeScript","readme":"\u003cimg src=\"https://ik.imagekit.io/unburn/Cropify.svg\"/\u003e\n\n\u003cp align=\"center\"\u003eCropify helps to crop and round image corners seamlessly.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/unburn/cropify\"\u003e\u003cb\u003eGithub\u003c/b\u003e\u003c/a\u003e •\n    \u003ca href=\"https://discord.gg/66uGX7t4ww\"\u003e\u003cb\u003eSupport\u003c/b\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![NPM Version](https://img.shields.io/npm/v/cropify?style=flat-square\u0026color=%2300ADD3)](https://www.npmjs.com/package/cropify)\n[![NPM Downloads](https://img.shields.io/npm/dw/cropify?style=flat-square\u0026color=%2300ADD3)](https://www.npmjs.com/package/cropify)\n[![NPM License](https://img.shields.io/npm/l/cropify?style=flat-square\u0026color=%2300ADD3)](https://github.com/unburn/cropify/blob/main/LICENCE)\n[![GitHub Repo stars](https://img.shields.io/github/stars/unburn/cropify?style=flat-square\u0026color=%2300ADD3)](https://github.com/unburn/cropify)\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://github.com/sponsors/flameface\"\u003e\u003cimg src=\"https://ik.imagekit.io/unburn/SupportCropify.svg\"/\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n# Features\n- Crop images with precision using the Canvas API.\n- Optional support for rounding corners with a customizable border radius.\n- Designed for simplicity and performance.\n- Upscale and cover image.\n\n# Installation\n```\nnpm install cropify\n```\n\n# Usage\n```javascript\nimport { cropImage } from \"cropify\";\nimport fs from \"fs\";\n\n// OR\n\nconst { cropImage } = require(\"cropify\");\nconst fs = require(\"fs\");\n\nconst image = 'https://th.bing.com/th/id/OIGP.914kwCtAqWQ7Lkx5hT2B?pid=ImgGn';\n\nconst cropX = 0;\nconst cropY = 0;\nconst cropWidth = 1280;\nconst cropHeight = 720;\nconst borderRadius = 80;\n\ncropImage({\n    imagePath: image,\n    x: cropX,\n    y: cropY,\n    width: cropWidth,\n    height: cropHeight,\n    borderRadius: borderRadius,\n    cropCenter: true\n}).then(x =\u003e {\n    console.log(\"Image has been cropped.\")\n    fs.writeFileSync(\"cropped-image.png\", x);\n});\n```\n\n## Output\n![example](https://ik.imagekit.io/unburn/CropifyExample.svg)\n\n# Licence\n[MIT](https://github.com/unburn/cropify/blob/main/LICENCE)","funding_links":["https://github.com/sponsors/flameface"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funburn%2Fcropify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funburn%2Fcropify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funburn%2Fcropify/lists"}