{"id":16125534,"url":"https://github.com/semibran/img-extract","last_synced_at":"2025-10-24T00:15:01.117Z","repository":{"id":57272532,"uuid":"125258073","full_name":"semibran/img-extract","owner":"semibran","description":":pick: tiny subimage extractor","archived":false,"fork":false,"pushed_at":"2018-04-22T03:07:17.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T18:41:28.864Z","etag":null,"topics":["extract","game","image","img","sprite","spritesheet","subimage"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/semibran.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":"2018-03-14T18:40:15.000Z","updated_at":"2018-04-22T03:09:03.000Z","dependencies_parsed_at":"2022-09-02T13:10:14.662Z","dependency_job_id":null,"html_url":"https://github.com/semibran/img-extract","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fimg-extract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fimg-extract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fimg-extract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fimg-extract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semibran","download_url":"https://codeload.github.com/semibran/img-extract/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485291,"owners_count":20946398,"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":["extract","game","image","img","sprite","spritesheet","subimage"],"created_at":"2024-10-09T21:29:55.920Z","updated_at":"2025-10-24T00:15:01.005Z","avatar_url":"https://github.com/semibran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# img-extract\n\u003e tiny subimage extractor\n\n## usage\n[![npm badge]][npm package]\n\n### `extract(image, x, y, width, height) -\u003e canvas`\nExtracts a `canvas` from the provided `image` and `x`, `y`, `width`, `height` region.\n\n* `image`: The source image of type [`CanvasImageSource`](CanvasImageSource)\n* `x`: The x-coordinate offset of the subimage in pixels\n* `y`: The y-coordinate offset of the subimage in pixels\n* `width`: The width of the subimage in pixels\n* `height`: The height of the subimage in pixels\n* `canvas`: The subimage, of type `HTMLCanvasElement`\n\n[npm package]: https://www.npmjs.com/package/img-extract\n[npm badge]:   https://nodei.co/npm/img-extract.png?mini\n[CanvasImageSource]: https://developer.mozilla.org/en-US/docs/Web/API/CanvasImageSource\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Fimg-extract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemibran%2Fimg-extract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Fimg-extract/lists"}