{"id":13624817,"url":"https://github.com/willbamford/tinycrop","last_synced_at":"2025-12-25T21:09:54.799Z","repository":{"id":40413797,"uuid":"46655208","full_name":"willbamford/tinycrop","owner":"willbamford","description":"Pure JavaScript image crop library","archived":false,"fork":false,"pushed_at":"2024-03-11T17:01:56.000Z","size":6673,"stargazers_count":72,"open_issues_count":19,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-04T16:06:04.590Z","etag":null,"topics":["crop","image-cropper","javascript","react"],"latest_commit_sha":null,"homepage":"http://willbamford.github.io/tinycrop/","language":"JavaScript","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/willbamford.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":"2015-11-22T10:11:39.000Z","updated_at":"2024-12-16T01:54:49.000Z","dependencies_parsed_at":"2024-06-12T07:23:07.579Z","dependency_job_id":"285d8d75-9ae9-4a96-9432-d87b3097744e","html_url":"https://github.com/willbamford/tinycrop","commit_stats":null,"previous_names":["webseed/tinycrop"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willbamford%2Ftinycrop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willbamford%2Ftinycrop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willbamford%2Ftinycrop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willbamford%2Ftinycrop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willbamford","download_url":"https://codeload.github.com/willbamford/tinycrop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249182452,"owners_count":21226068,"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":["crop","image-cropper","javascript","react"],"created_at":"2024-08-01T21:01:46.782Z","updated_at":"2025-12-25T21:09:49.768Z","avatar_url":"https://github.com/willbamford.png","language":"JavaScript","funding_links":[],"categories":["javascript","react"],"sub_categories":[],"readme":"# 🚨 Sorry this repo is no longer maintained\n\n# tinycrop\n\n\u003ca href=\"https://circleci.com/gh/willbamford/tinycrop\"\u003e\n  \u003cimg\n    src=\"https://circleci.com/gh/willbamford/tinycrop.svg?style=shield\"\n    alt=\"Build status\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://npmjs.org/package/tinycrop\"\u003e\n  \u003cimg\n    src=\"https://img.shields.io/npm/v/tinycrop.svg?style=flat-square\"\n    alt=\"NPM version\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://standardjs.com\"\u003e\n  \u003cimg\n    src=\"https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\"\n    alt=\"Standard\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://unpkg.com/tinycrop/dist/tinycrop.min.js\"\u003e\n   \u003cimg\n    src=\"https://badge-size.herokuapp.com/willbamford/tinycrop/master/dist/tinycrop.min.js.svg?compression=gzip\"\n    alt=\"File size\" /\u003e\n\u003c/a\u003e\n\nLightweight pure JavaScript image crop library. [Plays nicely with React](http://willbamford.github.io/tinycrop/react-example).\n\n## Install from repository\n\nUsing NPM:\n```\nnpm i tinycrop -S\n```\n\nOr [Yarn](https://yarnpkg.com):\n```\nyarn add tinycrop\n```\n\n## Build from source\n1. Install nodejs\n1. Clone this repository\n1.\n    ```bash\n    npm install\n    ```\n1. \n    ```bash\n    npm run build\n    ```\n\n## Create new cropper\n\n```js\nvar Crop = require('tinycrop')\n\nvar crop = Crop.create({\n  parent: '#mount',\n  image: 'images/portrait.jpg',\n  bounds: {\n    width: '100%',\n    height: '50%'\n  },\n  backgroundColors: ['#fff', '#f3f3f3'],\n  selection: {\n    color: 'red',\n    activeColor: 'blue',\n    aspectRatio: 4 / 3,\n    minWidth: 200,\n    minHeight: 300,\n    width: 400,\n    height: 500,\n    x: 100,\n    y: 500\n  },\n  onInit: () =\u003e { console.log('Initialised') }\n});\n```\n\n## Events\n\n```js\ncrop\n  .on('start', function (region) { console.log('Start', region) })\n  .on('move', function (region) { console.log('Move', region) })\n  .on('resize', function (region) { console.log('Resize', region) })\n  .on('change', function (region) { console.log('Change', region) })\n  .on('end', function (region) { console.log('End', region) });\n```\n\n## Demo\n\nhttp://willbamford.github.io/tinycrop/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillbamford%2Ftinycrop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillbamford%2Ftinycrop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillbamford%2Ftinycrop/lists"}